~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_string.cc

  • Committer: Brian Aker
  • Date: 2008-08-05 04:10:42 UTC
  • mfrom: (261.2.8 codestyle)
  • mto: This revision was merged to the branch mainline in revision 263.
  • Revision ID: brian@tangent.org-20080805041042-1l4893r3bwy2lxz2
Merge from Monty

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 */