diff options
author | Andras Timar <andras.timar@collabora.com> | 2014-01-16 17:00:06 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2014-01-16 17:00:32 +0100 |
commit | da67f5b162702c847674b8736672961bb26d5411 (patch) | |
tree | 43fc3b8d1480ccbb34b0e813c38702943951a91b /basic | |
parent | add support for double-tap to go back a transition (diff) | |
download | core-da67f5b162702c847674b8736672961bb26d5411.tar.gz core-da67f5b162702c847674b8736672961bb26d5411.zip |
Environment variables can contain >127 characters
Change-Id: Iaeb690429d835ab2e6c13a8890a1b27b9405796a
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/runtime/methods1.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/runtime/methods1.cxx b/basic/source/runtime/methods1.cxx index 294584e5324e..a2f440c82fe9 100644 --- a/basic/source/runtime/methods1.cxx +++ b/basic/source/runtime/methods1.cxx @@ -1326,7 +1326,7 @@ RTLFUNC(Environ) const char* pEnvStr = getenv(aByteStr.getStr()); if ( pEnvStr ) { - aResult = OUString::createFromAscii( pEnvStr ); + aResult = OUString(pEnvStr, strlen(pEnvStr), osl_getThreadTextEncoding()); } rPar.Get(0)->PutString( aResult ); } |