Kaydet (Commit) 791f2768 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#48129 maLangStr can have trailing nulls

üst ecf2926c
......@@ -105,8 +105,8 @@ void RscLangEnum::Init( RscNameTable& rNames )
pLangEntry->mnLang,
MsLangId::convertLanguageToIsoByteString( pLangEntry->mnLang ).getStr() );
#endif
rtl::OString aLang = pLangEntry->maLangStr;
rtl::OString aCountry = pLangEntry->maCountry;
rtl::OString aLang(pLangEntry->maLangStr, strlen(pLangEntry->maLangStr));
rtl::OString aCountry(pLangEntry->maCountry, strlen(pLangEntry->maCountry));
if ( aCountry.isEmpty() || aLang.equalsIgnoreAsciiCase(aCountry) )
{
SetConstant( rNames.Put( aLang.getStr(), CONSTNAME, mnLangId ), mnLangId );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment