diff options
author | mbr <mbr@FreeBSD.org> | 2003-04-04 06:12:55 +0800 |
---|---|---|
committer | mbr <mbr@FreeBSD.org> | 2003-04-04 06:12:55 +0800 |
commit | f8c11b893234410de26d70e5c98b9de7b7c83747 (patch) | |
tree | 8cedde03e67aece5c0356c6396dd57cc38fdf3d8 /editors/openoffice.org-2.0 | |
parent | 0805c12636b2f1e6ef4a13a951ba4ac392372e27 (diff) | |
download | freebsd-ports-gnome-f8c11b893234410de26d70e5c98b9de7b7c83747.tar.gz freebsd-ports-gnome-f8c11b893234410de26d70e5c98b9de7b7c83747.tar.zst freebsd-ports-gnome-f8c11b893234410de26d70e5c98b9de7b7c83747.zip |
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.0')
-rw-r--r-- | editors/openoffice.org-2.0/files/patch-registry+source+registry.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/editors/openoffice.org-2.0/files/patch-registry+source+registry.cxx b/editors/openoffice.org-2.0/files/patch-registry+source+registry.cxx new file mode 100644 index 000000000000..502abe41e48d --- /dev/null +++ b/editors/openoffice.org-2.0/files/patch-registry+source+registry.cxx @@ -0,0 +1,14 @@ +--- ../registry/source/registry.cxx.orig Fri Apr 4 00:09:08 2003 ++++ ../registry/source/registry.cxx Fri Apr 4 00:06:25 2003 +@@ -145,11 +145,7 @@ + + RTL_CONSTASCII_LENGTH("/reg_XXXXXX") ) ); + strncat(tmpPattern, "/reg_XXXXXX", sizeof(tmpPattern)-1-strlen(tmpPattern)); + +-#if defined(FREEBSD) || defined(MACOSX) +- pTmpName = mkstemp(tmpPattern); +-#else + pTmpName = mktemp(tmpPattern); +-#endif + #endif + + return OString(pTmpName); |