summaryrefslogtreecommitdiff
blob: 00ac4298158f23ad47b957f227f6d7cc7a31c4b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
diff -urN cproto-4.6-orig/cproto.c cproto-4.6/cproto.c
--- cproto-4.6-orig/cproto.c	1998-01-23 20:42:07.000000000 -0500
+++ cproto-4.6/cproto.c	2002-10-18 16:20:34.000000000 -0400
@@ -770,7 +770,7 @@
 		while (s != temp && s[-1] != '/')
 		    s--;
 		(void)strcpy(s, "XXXXXX.c");
-	    	mktemp(temp);
+	    	mkstemp(temp);
 	    	if (link(argv[i], temp) < 0)
 		    (void)strcpy(temp, argv[i]);
 	    }
@@ -790,7 +790,7 @@
 		 * the file that we're writing to.
 		 */
 		sprintf(cpp_cmd, cpp,
-			mktemp(strcpy(temp, "sys$scratch:XXXXXX.i")));
+			mkstemp(strcpy(temp, "sys$scratch:XXXXXX.i")));
 		sprintf(cpp_cmd + strlen(cpp_cmd), "%s %s", cpp_opt, FileName);
 		system(cpp_cmd);
 		inf = fopen(temp, "r");
diff -urN cproto-4.6-orig/lex_yy.c cproto-4.6/lex_yy.c
--- cproto-4.6-orig/lex_yy.c	1996-04-13 00:29:18.000000000 -0400
+++ cproto-4.6/lex_yy.c	2002-10-18 16:20:47.000000000 -0400
@@ -2859,7 +2859,7 @@
 	tmpdir = "/tmp";
     }
     sprintf(name, "%s/TfXXXXXX", tmpdir);
-    mktemp(name);
+    mkstemp(name);
 
     if ((f = fopen(name, "w+")) == (FILE *)0)
     {