blob: 1c6f3a2fe09a37ab69b931a4cb61a8b54921081c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ao,v 1.1 2001/09/08 20:03:45 jlam Exp $
--- tests/Performance/Startup/editor.c.orig Wed May 3 05:12:48 2000
+++ tests/Performance/Startup/editor.c Wed Aug 9 19:29:43 2000
@@ -238,7 +238,7 @@
strcpy(tempname, "/tmp/xmeditXXXXXX");
- if ((tfp = fopen(mktemp(tempname), "w")) == NULL) {
+ if ((tfp = mkstemp(tempname)) == NULL) {
fprintf(stderr, "Warning: unable to open temp file, text not saved.\n");
return(False);;
}
|