diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1998-03-04 00:53:43 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1998-03-04 00:53:43 +0000 |
commit | f136b21fd73cfa6f2081681208861ef7407a7a9e (patch) | |
tree | ea09e63d3891780441d314d80863a2093521eec8 /gnu/usr.bin/groff/xditview | |
parent | 365e87acb1b651256fec810051d4faf3a2e1630e (diff) |
Fix mktemp()->mkstemp()...
Diffstat (limited to 'gnu/usr.bin/groff/xditview')
-rw-r--r-- | gnu/usr.bin/groff/xditview/Dvi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/usr.bin/groff/xditview/Dvi.c b/gnu/usr.bin/groff/xditview/Dvi.c index fe4eee2c114..312f686e677 100644 --- a/gnu/usr.bin/groff/xditview/Dvi.c +++ b/gnu/usr.bin/groff/xditview/Dvi.c @@ -345,12 +345,13 @@ static void OpenFile (dw) DviWidget dw; { char tmpName[sizeof ("/tmp/dviXXXXXX")]; + int fd; 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; |