diff options
author | kevlo <kevlo@FreeBSD.org> | 2000-07-21 10:11:44 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2000-07-21 10:11:44 +0000 |
commit | 002a13e2dd83c3de8f41474607aa93c3a767ace2 (patch) | |
tree | 20399ba78c811a34061ba0cb4d54749b598a5397 /editors/gate/files/patch-ad | |
parent | da8aaecc800f639c57df1e97dc174c0bee693d43 (diff) | |
download | FreeBSD-ports-002a13e2dd83c3de8f41474607aa93c3a767ace2.zip FreeBSD-ports-002a13e2dd83c3de8f41474607aa93c3a767ace2.tar.gz |
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
Diffstat (limited to 'editors/gate/files/patch-ad')
-rw-r--r-- | editors/gate/files/patch-ad | 19 |
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); |