openbsd-ports/editors/jove/patches/patch-abbrev_c

21 lines
447 B
Plaintext
Raw Normal View History

2006-04-09 06:10:25 -04:00
$OpenBSD: patch-abbrev_c,v 1.1 2006/04/09 10:10:25 alek Exp $
--- abbrev.c.orig Thu Mar 7 18:34:41 1996
+++ abbrev.c Sun Apr 9 12:05:56 2006
@@ -274,7 +274,16 @@ EditAbbrevs()
1998-07-25 00:19:28 -04:00
"jabbXXXXXX"
#endif
);
+#if 1
+ {
+ int fd = mkstemp(tname);
+ if ( fd == -1 )
+ err( 1, "can't create temp file %s", tname );
+ close( fd );
+ }
+#else
(void) mktemp(tname);
+#endif
save_abbrevs(tname);
setfname(ebuf, tname);
read_file(tname, NO);