Use mkstemp in place of mktemp.

This commit is contained in:
Nick Clifton
2001-11-12 16:17:39 +00:00
parent f11b702702
commit 7559e86e56
2 changed files with 15 additions and 11 deletions

View File

@ -233,14 +233,14 @@ make_tempname (filename)
#endif
strcat (tmpname, "/");
strcat (tmpname, template);
mktemp (tmpname);
close (mkstemp (tmpname));
*slash = c;
}
else
{
tmpname = xmalloc (sizeof (template));
strcpy (tmpname, template);
mktemp (tmpname);
close (mkstemp (tmpname));
}
return tmpname;
}