summaryrefslogtreecommitdiff
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
commit0f9ae7e89df530b9067b1714fcf933aa093e8e30 (patch)
tree03e1b023e8924e3abcd0c9fc41e26f951aab3b4d /registry/source
parentf336fa89d5dca33fc267fc3f956cb16b61d8ffc4 (diff)
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 525370bfb..452f58047 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);