17 lines
418 B
Plaintext
17 lines
418 B
Plaintext
--- common/tmpfile.c.orig Tue May 9 10:06:46 1995
|
|
+++ common/tmpfile.c Wed Jun 7 00:29:15 2000
|
|
@@ -90,7 +90,12 @@ void tmpfile_free()
|
|
char *tmpfile_create()
|
|
{
|
|
TMP_FILE *ptr, *tf;
|
|
- char *filename = strdup(tmpnam(NULL));
|
|
+ char xxx[40];
|
|
+ char *filename;
|
|
+
|
|
+ sprintf(xxx, "/tmp/tmpf.XXXXXXXX");
|
|
+ close(mkstemp(xxx));
|
|
+ filename = strdup(xxx);
|
|
|
|
if(filename == NULL)
|
|
return(NULL);
|