~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_string.cc

MergedĀ fromĀ Mats.

Show diffs side-by-side

added added

removed removed

Lines of Context:
234
234
    If we add little-endian UCS-2 sometimes, this code
235
235
    will be more complicated. But it's OK for now.
236
236
  */
237
 
  memset((char*) Ptr, 0, offset);
 
237
  memset(Ptr, 0, offset);
238
238
  memcpy(Ptr + offset, str, arg_length);
239
239
  Ptr[aligned_length]=0;
240
240
  /* str_length is always >= 0 as arg_length is != 0 */