From: Mikko Rasa Date: Sun, 31 Jan 2021 15:18:37 +0000 (+0200) Subject: Fix BMP loader signature check X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=e1f6dad834fb043f22a57dbaa65016ee1f65a43a;p=libs%2Fgui.git Fix BMP loader signature check --- diff --git a/source/graphics/bmploader.cpp b/source/graphics/bmploader.cpp index 086648b..fa23182 100644 --- a/source/graphics/bmploader.cpp +++ b/source/graphics/bmploader.cpp @@ -38,7 +38,7 @@ BmpLoader::BmpLoader(IO::Base &i, unsigned sb): bool BmpLoader::detect(const std::string &sig) { - static const char bmp_sig[] = "BM"; + static const char bmp_sig[] = { 'B', 'M' }; if(sig.size()