summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-08-12 12:34:35 +0000
committerOliver Bolte <obo@openoffice.org>2004-08-12 12:34:35 +0000
commitbe0b81f9cb2789e700478f5769d5bfa58dcc2bb8 (patch)
tree25f1cd5366d59e1f8fee81dd811ba5e941040df4 /cppuhelper
parentbaf91fc87f4befad62950b6db3b8b6cf14b20c5f (diff)
INTEGRATION: CWS tbe12 (1.19.2); FILE MERGED
2004/07/30 15:35:28 tbe 1.19.2.1: #i32348# empty component context in bootstrap function
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/bootstrap.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/cppuhelper/source/bootstrap.cxx b/cppuhelper/source/bootstrap.cxx
index b9d9877e5bf3..1ed9573ecd84 100644
--- a/cppuhelper/source/bootstrap.cxx
+++ b/cppuhelper/source/bootstrap.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: bootstrap.cxx,v $
*
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: rt $ $Date: 2004-07-23 15:02:43 $
+ * last change: $Author: obo $ $Date: 2004-08-12 13:34:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -553,14 +553,15 @@ Reference< XComponentContext > SAL_CALL bootstrap()
rtlRandomPool hPool = rtl_random_createPool();
if ( hPool == 0 )
throw BootstrapException( OUSTR( "cannot create random pool!" ) );
- sal_uInt8 bytes[ 32 ];
+ sal_uInt8 bytes[ 16 ];
if ( rtl_random_getBytes( hPool, bytes, ARLEN( bytes ) )
!= rtl_Random_E_None )
throw BootstrapException( OUSTR( "random pool error!" ) );
rtl_random_destroyPool( hPool );
::rtl::OUStringBuffer buf;
+ buf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "uno" ) );
for ( sal_uInt32 i = 0; i < ARLEN( bytes ); ++i )
- buf.append( static_cast< sal_Int32 >( bytes[ i ] ), 0x10 );
+ buf.append( static_cast< sal_Int32 >( bytes[ i ] ) );
OUString sPipeName( buf.makeStringAndClear() );
// accept string