summaryrefslogtreecommitdiffstats
path: root/registry/source
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-09-20 13:48:28 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-09-20 13:48:28 +0000
commit28958a7ae5124df4d78a21bb3f5fe9a44bc4859b (patch)
tree8392d0170c50f27a0c672ccfb33e5b6855954b42 /registry/source
parentINTEGRATION: CWS os2port01 (1.22.12); FILE MERGED (diff)
downloadcore-28958a7ae5124df4d78a21bb3f5fe9a44bc4859b.tar.gz
core-28958a7ae5124df4d78a21bb3f5fe9a44bc4859b.zip
INTEGRATION: CWS os2port01 (1.16.8); FILE MERGED
2007/07/18 07:17:31 obr 1.16.8.2: RESYNC: (1.16-1.17); FILE MERGED 2006/12/28 15:03:32 ydario 1.16.8.1: OS/2 initial import.
Diffstat (limited to 'registry/source')
-rw-r--r--registry/source/registry.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/registry/source/registry.cxx b/registry/source/registry.cxx
index cec7e5002e31..154cd463aec9 100644
--- a/registry/source/registry.cxx
+++ b/registry/source/registry.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: registry.cxx,v $
*
- * $Revision: 1.17 $
+ * $Revision: 1.18 $
*
- * last change: $Author: obo $ $Date: 2006-09-17 01:53:45 $
+ * last change: $Author: vg $ $Date: 2007-09-20 14:48:28 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -54,7 +54,7 @@
#endif
#include "regkey.hxx"
-#if defined(WIN32) || defined(WNT) || defined(__OS2__)
+#if defined(WIN32) || defined(WNT) || defined(OS2)
#include <io.h>
#endif
@@ -102,14 +102,14 @@ OString getTempName()
strncpy(tmpPattern, aOStr.getStr(), sizeof(tmpPattern)-1);
}
-#if defined(WIN32) || defined(WNT)
+#if defined(WIN32) || defined(WNT) || defined(OS2)
OSL_ASSERT( sizeof(tmpPattern) > ( strlen(tmpPattern)
+ RTL_CONSTASCII_LENGTH("\\reg_XXXXXX") ) );
strncat(tmpPattern, "\\reg_XXXXXX", sizeof(tmpPattern)-1-strlen(tmpPattern));
pTmpName = mktemp(tmpPattern);
#endif
-#ifdef __OS2__
+#ifdef OS2__YD
char* tmpname = tempnam(NULL, "reg_");
OSL_ASSERT( sizeof(tmpPattern) > strlen(tmpname) );
strncpy(tmpPattern, tmpname, sizeof(tmpPattern)-1);