mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-31 21:57:12 +00:00
20634b45b2
PR: 17717 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
13 lines
373 B
Plaintext
13 lines
373 B
Plaintext
--- tools/fax2ps.c.orig Wed Mar 29 13:22:33 2000
|
|
+++ tools/fax2ps.c Sat Apr 1 00:00:00 2000
|
|
@@ -382,8 +382,7 @@
|
|
char temp[1024], buf[16*1024];
|
|
|
|
strcpy(temp, "/tmp/fax2psXXXXXX");
|
|
- (void) mktemp(temp);
|
|
- fd = fopen(temp, "w");
|
|
+ fd = fdopen(mkstemp(temp), "w+");
|
|
if (fd == NULL) {
|
|
fprintf(stderr, "Could not create temp file \"%s\"\n", temp);
|
|
exit(-2);
|