~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_tempdir.cc

  • Committer: Toru Maesaka
  • Date: 2008-11-28 12:01:28 UTC
  • mto: (632.1.17 devel)
  • mto: This revision was merged to the branch mainline in revision 637.
  • Revision ID: dev@torum.net-20081128120128-l74ldi084votrgg2
First pass of replacing MySQL's strmake() with libc calls

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
    end= strrchr(pathlist, DELIM);
41
41
    if (end == NULL)
42
42
      end= pathlist+strlen(pathlist);
43
 
    strmake(buff, pathlist, (uint) (end-pathlist));
 
43
    strncpy(buff, pathlist, FN_REFLEN-1);
44
44
    length= cleanup_dirname(buff, buff);
45
45
    if (!(copy= my_strndup(buff, length, MYF(MY_WME))) ||
46
46
        insert_dynamic(&tmpdir->full_list, (unsigned char*) &copy))