diff options
author | mbr <mbr@FreeBSD.org> | 2003-04-04 06:17:17 +0800 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2003-04-04 06:17:17 +0800 |
commit | 33584c5ac989f448b6cb42bfd606bb07d4fb408b (patch) | |
tree | d93ee999684b6415d2eeeb737f75a1e02572490f /editors/openoffice.org-2-RC/files | |
parent | f8c11b893234410de26d70e5c98b9de7b7c83747 (diff) | |
download | freebsd-ports-gnome-33584c5ac989f448b6cb42bfd606bb07d4fb408b.tar.gz freebsd-ports-gnome-33584c5ac989f448b6cb42bfd606bb07d4fb408b.tar.zst freebsd-ports-gnome-33584c5ac989f448b6cb42bfd606bb07d4fb408b.zip |
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.
Diffstat (limited to 'editors/openoffice.org-2-RC/files')
-rw-r--r-- | editors/openoffice.org-2-RC/files/patch-codemaker+source+codemaker+global.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/editors/openoffice.org-2-RC/files/patch-codemaker+source+codemaker+global.cxx b/editors/openoffice.org-2-RC/files/patch-codemaker+source+codemaker+global.cxx new file mode 100644 index 000000000000..057d4ec4d670 --- /dev/null +++ b/editors/openoffice.org-2-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); |