summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorDaniel Boelzle <dbo@openoffice.org>2001-08-23 06:21:56 +0000
committerDaniel Boelzle <dbo@openoffice.org>2001-08-23 06:21:56 +0000
commitb1e3c1d43161ad7275b5aaf7913ba42097a3b3be (patch)
tree1538e0699a91ca724ab5d2c955dcdb15671db55e /idlc
parent63a868752267869a264e32783b28f9400ed8cbc2 (diff)
#91419# not modifying any file names created by mkstemp()
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/idlccompile.cxx12
-rw-r--r--idlc/source/idlcproduce.cxx6
2 files changed, 11 insertions, 7 deletions
diff --git a/idlc/source/idlccompile.cxx b/idlc/source/idlccompile.cxx
index b79ef762774e..4c7bd963b6f4 100644
--- a/idlc/source/idlccompile.cxx
+++ b/idlc/source/idlccompile.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: idlccompile.cxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: rt $ $Date: 2001-08-20 10:44:50 $
+ * last change: $Author: dbo $ $Date: 2001-08-23 07:21:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -182,8 +182,12 @@ OString makeTempName(const OString& prefix, const OString& postfix)
#else
(void) mktemp(tmpFilePattern);
#endif
- if ( postfix.getLength() )
- strcat(tmpFilePattern, postfix.getStr());
+ /** DBO (08/22/2002):
+ since mkstemp() creates the file, it won't be removed anywhere later appending a postfix.
+ Is the postfix necessarry?
+ */
+// if ( postfix.getLength() )
+// strcat(tmpFilePattern, postfix.getStr());
#endif
#ifdef __OS2__
diff --git a/idlc/source/idlcproduce.cxx b/idlc/source/idlcproduce.cxx
index 40af02bfb464..664fe987acca 100644
--- a/idlc/source/idlcproduce.cxx
+++ b/idlc/source/idlcproduce.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: idlcproduce.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: jsc $ $Date: 2001-08-17 13:03:26 $
+ * last change: $Author: dbo $ $Date: 2001-08-23 07:21:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -216,9 +216,9 @@ sal_Int32 SAL_CALL produceFile(const OString& fileName)
OString strippedFileName(fileName.copy(fileName.lastIndexOf(SEPARATOR) + 1));
OString tempName(strippedFileName.copy(0, strippedFileName.indexOf('.')));
tempName += "_";
+ tempName += strippedFileName.replaceAt(strippedFileName.getLength() -3 , 3, "_idlc_");
OString regTmpName( makeTempName(tempName, "._idlc_"));
regFileName += strippedFileName.replaceAt(strippedFileName.getLength() -3 , 3, "urd");
- regTmpName += strippedFileName.replaceAt(strippedFileName.getLength() -3 , 3, "_idlc_");
RegistryLoader regLoader;
RegistryTypeWriterLoader writerLoader;