aboutsummaryrefslogtreecommitdiff
path: root/security/tripwire-131/files/patch-src-utils.c
blob: 3b025e3b07cea8f446437a26c17df0508ddcceb2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- 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);
     }