~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_dirname.c

  • Committer: Monty Taylor
  • Date: 2008-10-27 23:19:48 UTC
  • mto: (520.4.12 merge-innodb-plugin)
  • mto: This revision was merged to the branch mainline in revision 563.
  • Revision ID: monty@inaugust.com-20081027231948-3kl6ss04plbakqcr
Split some more things out of common_includes.h.

Show diffs side-by-side

added added

removed removed

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