From c16357869280d4adb77adf36aa578adb902daa5f Mon Sep 17 00:00:00 2001 From: Martin Blapp Date: Thu, 3 Apr 2003 22:17:17 +0000 Subject: 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. --- .../files/patch-codemaker+source+codemaker+global.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 editors/openoffice-1.1/files/patch-codemaker+source+codemaker+global.cxx (limited to 'editors/openoffice-1.1/files') diff --git a/editors/openoffice-1.1/files/patch-codemaker+source+codemaker+global.cxx b/editors/openoffice-1.1/files/patch-codemaker+source+codemaker+global.cxx new file mode 100644 index 000000000000..057d4ec4d670 --- /dev/null +++ b/editors/openoffice-1.1/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); -- cgit v1.2.3