freebsd-ports/editors/gate/files/patch-af
Kevin Lo 02585bd39c Initial import of gate-2.04c.
gate is a simple and unobtrusive line-oriented text editor.

PR: 19905
Submitted by: Christopher N. Harrell <cnh@ivmg.net>
Reviewed by: sobomax
2000-07-21 10:11:44 +00:00

17 lines
336 B
Plaintext

--- 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);
}