~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_dirname.cc

merge with latest from the trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
#else
151
151
  /* This is ok even if to == from, becasue we need to cut the string */
152
152
  size_t len= cmin(strlen(from),(size_t)(from_end-from));
153
 
  to= strncpy(to, from, len);
 
153
  assert(memmove(to, from, len));
154
154
  to+= len;
155
155
  to[0]= '\0';
156
156
#endif