diff options
-rw-r--r-- | vcl/source/filter/imet/ios2met.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/filter/imet/ios2met.cxx b/vcl/source/filter/imet/ios2met.cxx index 774ed1517b9d..0057d3f55808 100644 --- a/vcl/source/filter/imet/ios2met.cxx +++ b/vcl/source/filter/imet/ios2met.cxx @@ -2374,8 +2374,7 @@ void OS2METReader::ReadFont(sal_uInt16 nFieldSize) case 0x08: { // Font Typeface char str[33]; pOS2MET->SeekRel(1); - pOS2MET->ReadBytes( &str, 32 ); - str[ 32 ] = 0; + str[pOS2MET->ReadBytes(str, 32)] = 0; OUString aStr( str, strlen(str), osl_getThreadTextEncoding() ); if ( aStr.equalsIgnoreAsciiCase( "Helv" ) ) aStr = "Helvetica"; |