~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_tempdir.cc

  • Committer: Brian Aker
  • Date: 2008-12-02 16:33:43 UTC
  • mfrom: (632.1.19 devel)
  • Revision ID: brian@tangent.org-20081202163343-007ifg17p0lvjga7
Merge from Monty

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))