~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_tempfile.c

  • Committer: Monty Taylor
  • Date: 2008-08-02 01:03:15 UTC
  • mto: (236.1.42 codestyle)
  • mto: This revision was merged to the branch mainline in revision 261.
  • Revision ID: monty@inaugust.com-20080802010315-65h5938pymg9d99z
Moved m4 macros to top-level m4 dir, per GNU standards (and where gettext wanted it :)

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) (stpcpy(stpncpy(prefix_buff,
 
78
    pfx_len= (uint) (strmov(strnmov(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
 
    stpcpy(convert_dirname(to,dir,NullS),prefix_buff);
 
89
    strmov(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));