summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/groff/xditview/Dvi.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.bin/groff/xditview/Dvi.c')
-rw-r--r--gnu/usr.bin/groff/xditview/Dvi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/groff/xditview/Dvi.c b/gnu/usr.bin/groff/xditview/Dvi.c
index 4391bc3c37f..990bcf986fc 100644
--- a/gnu/usr.bin/groff/xditview/Dvi.c
+++ b/gnu/usr.bin/groff/xditview/Dvi.c
@@ -397,7 +397,7 @@ static void OpenFile (dw)
mktemp (tmpName);
fd = open (tmpName, O_CREAT|O_EXCL|O_RDWR, S_IRUSR|S_IWUSR);
#endif /* not HAVE_MKSTEMP */
- dw->dvi.tmpFile = fdopen (tmpName, "w+");
+ dw->dvi.tmpFile = fdopen (fd, "w+");
unlink (tmpName);
}
dw->dvi.requested_page = 1;