~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/mf_tempfile.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:
63
63
    dir=getenv("TMPDIR");
64
64
  if ((res=tempnam((char*) dir,(char *) prefix)))
65
65
  {
66
 
    strmake(to,res,FN_REFLEN-1);
 
66
    strncpy(to,res,FN_REFLEN-1);
67
67
    (*free)(res);
68
68
    file=my_create(to, 0, mode | O_EXCL, MyFlags);
69
69
  }
119
119
    }
120
120
    if ((res=tempnam((char*) dir, (char*) prefix)))
121
121
    {
122
 
      strmake(to,res,FN_REFLEN-1);
 
122
      strncpy(to,res,FN_REFLEN-1);
123
123
      (*free)(res);
124
124
      file=my_create(to,0,
125
125
                     (int) (O_RDWR | O_TRUNC | O_EXCL),