summaryrefslogtreecommitdiffstats
path: root/editors/gate/files/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'editors/gate/files/patch-ad')
-rw-r--r--editors/gate/files/patch-ad19
1 files changed, 19 insertions, 0 deletions
diff --git a/editors/gate/files/patch-ad b/editors/gate/files/patch-ad
new file mode 100644
index 0000000..c010923
--- /dev/null
+++ b/editors/gate/files/patch-ad
@@ -0,0 +1,19 @@
+--- proc.c.orig Mon Jul 17 23:13:54 2000
++++ proc.c Mon Jul 17 23:14:26 2000
+@@ -57,13 +57,14 @@
+ char tmpname[20];
+ FILE *cfp;
+ long oldt;
++int fd;
+
+ /* We could use a call to make_copy() here, but this method survives
+ * interupts better
+ */
+ strcpy(tmpname, "/tmp/gateXXXXXX");
+- mktemp(tmpname);
+- if ((cfp= fopen(tmpname,"w+")) == NULL)
++ fd = mkstemp(tmpname);
++ if ((cfp= fdopen(fd,"w+")) == NULL)
+ {
+ printf("Cannot open file %s.\n",tmpname);
+ return(NULL);
OpenPOWER on IntegriCloud