~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzle.c

  • Committer: Brian Aker
  • Date: 2008-08-03 22:18:43 UTC
  • mfrom: (258.1.3 drizzle-takepatch)
  • Revision ID: brian@tangent.org-20080803221843-u1soxpwsluuuf1z1
Importing fixes from muzazzi

Show diffs side-by-side

added added

removed removed

Lines of Context:
4174
4174
  char *end= start + (buffer->length);
4175
4175
  while (start < end && !my_isgraph(charset_info,end[-1]))
4176
4176
    end--;
4177
 
  uint chars_to_truncate = end-start;
 
4177
  uint chars_to_truncate = (buffer->length) - (end-start);
4178
4178
  if (buffer->length > chars_to_truncate)
4179
4179
    dynstr_trunc(buffer, chars_to_truncate);
4180
4180
}