diff options
Diffstat (limited to 'basic/source/comp/buffer.cxx')
-rw-r--r-- | basic/source/comp/buffer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/comp/buffer.cxx b/basic/source/comp/buffer.cxx index 42646320804a..4512dbf063ef 100644 --- a/basic/source/comp/buffer.cxx +++ b/basic/source/comp/buffer.cxx @@ -224,8 +224,8 @@ sal_Bool SbiBuffer::operator +=( const String& n ) sal_uInt16 l = n.Len() + 1; if( Check( l ) ) { - ByteString aByteStr( n, osl_getThreadTextEncoding() ); - memcpy( pCur, aByteStr.GetBuffer(), l ); + rtl::OString aByteStr(rtl::OUStringToOString(n, osl_getThreadTextEncoding())); + memcpy( pCur, aByteStr.getStr(), l ); pCur += l; nOff = nOff + l; return sal_True; |