freebsd-ports/editors/gate/files/patch-af

17 lines
336 B
Plaintext
Raw Normal View History

--- subs.c.orig Mon Jul 17 23:16:19 2000
+++ subs.c Mon Jul 17 23:16:45 2000
@@ -40,10 +40,11 @@
{
char tmpname[18];
FILE *fp;
+int fd;
strcpy(tmpname, "/tmp/gateXXXXXX");
- mktemp(tmpname);
- fp= copy_file(tmpname);
+ fd = mkstemp(tmpname);
+ fp= copy_file(tmpname, fd);
unlink(tmpname);
return(fp);
}