1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/editors/jove/files/patch-rec.c
Baptiste Daroussin 7b2ebe8172 Fix collision with getline(3)
Regen patches
2016-07-29 23:15:11 +00:00

16 lines
356 B
C

--- rec.c.orig 1996-03-07 17:34:43 UTC
+++ rec.c
@@ -55,8 +55,12 @@ recinit()
#endif
);
recfname = copystr(buf);
+#ifndef NO_MKSTEMP
+ rec_fd = mkstemp(recfname);
+#else
recfname = mktemp(recfname);
rec_fd = creat(recfname, 0644);
+#endif
if (rec_fd == -1) {
complain("Cannot create \"%s\"; recovery disabled.", recfname);
/*NOTREACHED*/