[Libreoffice-commits] .: unotools/source
Caolán McNamara
caolan at kemper.freedesktop.org
Mon Nov 21 04:57:04 PST 2011
unotools/source/ucbhelper/tempfile.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit c6560c6f07f7f71842d7314157feaca2fa4a03c9
Author: Caolán McNamara <caolanm at redhat.com>
Date: Mon Nov 21 12:56:43 2011 +0000
Resolves fdo#41295 tmp name reuse in mass pdf export
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx
index d157bab..6728c80 100644
--- a/unotools/source/ucbhelper/tempfile.cxx
+++ b/unotools/source/ucbhelper/tempfile.cxx
@@ -206,8 +206,8 @@ void CreateTempName_Impl( String& rName, sal_Bool bKeep, sal_Bool bDir = sal_Tru
aName += String::CreateFromAscii( "lu" );
rName.Erase();
- unsigned long nSeed = Time::GetSystemTicks() % nMax;
- for ( unsigned long u = nSeed; ++u != nSeed; )
+ static unsigned long u = Time::GetSystemTicks() % nMax;
+ for ( unsigned long nSeed = u; ++u != nSeed; )
{
u %= nMax;
String aTmp( aName );
More information about the Libreoffice-commits
mailing list