diff options
-rw-r--r-- | vcl/source/filter/GraphicFormatDetector.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/filter/GraphicFormatDetector.cxx b/vcl/source/filter/GraphicFormatDetector.cxx index e5a1eb5f9a79..4a2117b6f5b9 100644 --- a/vcl/source/filter/GraphicFormatDetector.cxx +++ b/vcl/source/filter/GraphicFormatDetector.cxx @@ -522,8 +522,7 @@ bool GraphicFormatDetector::checkTGA() mrStream.SeekRel(-18); mrStream.ReadBytes(sFooterBytes, 18); - OString aFooterString(sFooterBytes); - if (aFooterString == "TRUEVISION-XFILE.") + if (memcmp(sFooterBytes, "TRUEVISION-XFILE.", SAL_N_ELEMENTS(sFooterBytes)) == 0) { msDetectedFormat = "TGA"; return true; |