mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
02585bd39c
gate is a simple and unobtrusive line-oriented text editor. PR: 19905 Submitted by: Christopher N. Harrell <cnh@ivmg.net> Reviewed by: sobomax
17 lines
336 B
Plaintext
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);
|
|
}
|