summaryrefslogtreecommitdiff
path: root/editors/openoffice.org-3-RC
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2003-04-03 22:17:17 +0000
committerMartin Blapp <mbr@FreeBSD.org>2003-04-03 22:17:17 +0000
commitc16357869280d4adb77adf36aa578adb902daa5f (patch)
treed41243083301695da7b0f870559a29c11de16a3e /editors/openoffice.org-3-RC
parentThis part was just wrong. mkstemp does return a file descriptor, (diff)
Same as in patch patch-registry+source+registry.cxx
This part was just wrong. mkstemp does return a file descriptor, not a string. This could lead to crashes. MacOS will have the same problems.
Notes
Notes: svn path=/head/; revision=78066
Diffstat (limited to 'editors/openoffice.org-3-RC')
-rw-r--r--editors/openoffice.org-3-RC/files/patch-codemaker+source+codemaker+global.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/editors/openoffice.org-3-RC/files/patch-codemaker+source+codemaker+global.cxx b/editors/openoffice.org-3-RC/files/patch-codemaker+source+codemaker+global.cxx
new file mode 100644
index 000000000000..057d4ec4d670
--- /dev/null
+++ b/editors/openoffice.org-3-RC/files/patch-codemaker+source+codemaker+global.cxx
@@ -0,0 +1,14 @@
+--- ../codemaker/source/codemaker/global.cxx.orig Fri Apr 4 00:14:50 2003
++++ ../codemaker/source/codemaker/global.cxx Fri Apr 4 00:14:53 2003
+@@ -164,11 +164,7 @@
+ strncat(tmpPattern, "/", sizeof(tmpPattern)-1-strlen(tmpPattern));
+ strncat(tmpPattern, pPrefix, sizeof(tmpPattern)-1-strlen(tmpPattern));
+ strncat(tmpPattern, "XXXXXX", sizeof(tmpPattern)-1-strlen(tmpPattern));
+-#if defined(FREEBSD) || defined(MACOSX)
+- pTmpName = mkstemp(tmpPattern);
+-#else
+ pTmpName = mktemp(tmpPattern);
+-#endif
+ #endif
+
+ return OString(pTmpName);