~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_tempfile.c

  • Committer: Brian Aker
  • Date: 2008-08-09 21:43:24 UTC
  • mfrom: (279.1.4 codestyle)
  • Revision ID: brian@tangent.org-20080809214324-jy2c15bx49naddsf
Merge from Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
    uint pfx_len;
76
76
    File org_file;
77
77
 
78
 
    pfx_len= (uint) (strmov(strnmov(prefix_buff,
 
78
    pfx_len= (uint) (stpcpy(stpncpy(prefix_buff,
79
79
                                    prefix ? prefix : "tmp.",
80
80
                                    sizeof(prefix_buff)-7),"XXXXXX") -
81
81
                     prefix_buff);
86
86
      errno=my_errno= ENAMETOOLONG;
87
87
      return(file);
88
88
    }
89
 
    strmov(convert_dirname(to,dir,NullS),prefix_buff);
 
89
    stpcpy(convert_dirname(to,dir,NullS),prefix_buff);
90
90
    org_file=mkstemp(to);
91
91
    if (mode & O_TEMPORARY)
92
92
      (void) my_delete(to, MYF(MY_WME | ME_NOINPUT));