Not needed.
This commit is contained in:
parent
e7b49c124d
commit
2d7d454a43
@ -1,16 +0,0 @@
|
|||||||
--- common/tmpfile.c.orig Tue May 9 04:06:46 1995
|
|
||||||
+++ common/tmpfile.c Thu Oct 21 20:43:13 1999
|
|
||||||
@@ -90,7 +90,12 @@
|
|
||||||
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);
|
|
Loading…
Reference in New Issue
Block a user