~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_string.cc

  • Committer: Olaf van der Spek
  • Date: 2011-08-04 08:13:04 UTC
  • mfrom: (2384 drizzle)
  • mto: This revision was merged to the branch mainline in revision 2385.
  • Revision ID: olafvdspek@gmail.com-20110804081304-rlejjpvoos17bjdf
Merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
286
286
 
287
287
void String::append(const char *s,size_t arg_length)
288
288
{
289
 
  if (!arg_length)
 
289
  if (arg_length == 0)
290
290
    return;
291
291
 
292
292
  /*
293
293
    For an ASCII compatinble string we can just append.
294
294
  */
295
295
  realloc(str_length+arg_length);
296
 
  memcpy(Ptr+str_length,s,arg_length);
 
296
  memcpy(Ptr +str_length, s, arg_length);
297
297
  str_length+=arg_length;
298
298
}
299
299