openbsd-ports/x11/openmotif/patches/patch-tests-Performance-Startup-editor.c
matt 5fe4d9edf9 From maintainer (smcho@tsp.korea.ac.kr):
- bring in latest patches
- added subpackages for demos and debuglibs
- only install Motif.rules and Motif.tmpl in config
- don't build config tools that OpenBSD already has
2001-01-03 00:02:55 +00:00

12 lines
420 B
C

--- tests/Performance/Startup/editor.c.orig Wed May 3 02:12:48 2000
+++ tests/Performance/Startup/editor.c Mon Nov 20 19:08:40 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);;
}