summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2013-02-08 18:49:32 +0100
committerLuboš Luňák <l.lunak@suse.cz>2013-02-08 18:50:02 +0100
commit895f272ed9301ce41966a17a5c212c0e16925241 (patch)
tree2d027cfbad9850c835c1594e896438da706ec19c
parent59a1c91da315f43a971148cb6bdedeb50af96859 (diff)
fix incorrect string conversion in 9e310cc32923ceb4b18d97ce68d54a339b935f01
Change-Id: Ia1ddf969f876ce47b4195c60039b38f2a47f3470
-rw-r--r--tools/source/rc/resmgr.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx
index 3a2a083f6c16..d161c6517f14 100644
--- a/tools/source/rc/resmgr.cxx
+++ b/tools/source/rc/resmgr.cxx
@@ -1240,7 +1240,8 @@ sal_uInt32 ResMgr::GetStringWithoutHook( OUString& rStr, const sal_uInt8* pStr )
{
sal_uInt32 nLen=0;
sal_uInt32 nRet = GetStringSize( pStr, nLen );
- OUString aString( (sal_Char*)pStr, RTL_TEXTENCODING_UTF8,
+ const sal_Char* str = reinterpret_cast< const sal_Char* >( pStr );
+ OUString aString( str, strlen( str ), RTL_TEXTENCODING_UTF8,
RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_MAPTOPRIVATE |
RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_DEFAULT |
RTL_TEXTTOUNICODE_FLAGS_INVALID_DEFAULT );