openbsd-ports/japanese/groff/patches/patch-xditview_Dvi_c
espie 6d27725c2b Synch with OpenBSD changes for groff 1.10:
bug fix, security fixes, Y2K fixes.
2000-04-20 22:40:40 +00:00

15 lines
480 B
Plaintext

$OpenBSD: patch-xditview_Dvi_c,v 1.1 2000/04/20 22:40:42 espie Exp $
--- xditview/Dvi.c.orig Fri Apr 21 00:32:15 2000
+++ xditview/Dvi.c Fri Apr 21 00:32:41 2000
@@ -353,8 +353,8 @@ static void OpenFile (dw)
dw->dvi.tmpFile = 0;
if (!dw->dvi.seek) {
strcpy (tmpName, "/tmp/dviXXXXXX");
- mktemp (tmpName);
- dw->dvi.tmpFile = fopen (tmpName, "w+");
+ fd = mkstemp (tmpName);
+ dw->dvi.tmpFile = fdopen (fd, "w+");
unlink (tmpName);
}
dw->dvi.requested_page = 1;