mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-04 22:33:27 +00:00
cf2c8ec847
PR: 18964 Submitted by: Cy Schubert <Cy.Schubert@uumail.gov.bc.ca>
14 lines
349 B
Plaintext
14 lines
349 B
Plaintext
--- src/utils.c.orig Tue Jun 13 23:43:01 2000
|
|
+++ src/utils.c Tue Jun 13 23:43:50 2000
|
|
@@ -856,8 +856,8 @@
|
|
int fd;
|
|
|
|
(void) strcpy(tmp, TEMPFILE_TEMPLATE);
|
|
- if ((char *) mktemp(tmp) == NULL) {
|
|
- perror("tempfilename_generate: mktemp()");
|
|
+ if (mkstemp(tmp) == -1) {
|
|
+ perror("tempfilename_generate: mkstemp()");
|
|
exit(1);
|
|
}
|
|
|