openbsd-ports/x11/openmotif/patches/patch-tests-Performance-Startup-editor.c
matt a521d0a427 - consolidate pre-build steps into post-patch
- eliminate XCONFIGF in Makefile to prevent multiple evaluations
- point mwm at PROJECTROOT (i.e. /usr/local) instead of XPROJECTROOT
  (i.e. /usr/X11R6) to find lib/X11/system.mwmrc
- tblize manpages
- break up patches and rename to match current convention
- prettify Makefile
2000-08-10 01:40:40 +00:00

12 lines
420 B
C

--- 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);;
}