GraphicsMagick: coders/bmp.c Fix comparison condition again.

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.7466.1691426963.1439.graphicsmagick-commit@lists.sourceforge.net>
changeset 1c5f6e7f6af6 in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=1c5f6e7f6af6
summary: coders/bmp.c Fix comparison condition again.

diffstat:

 coders/bmp.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r bd39ba171487 -r 1c5f6e7f6af6 coders/bmp.c
--- a/coders/bmp.c	Mon Aug 07 18:36:19 2023 +0200
+++ b/coders/bmp.c	Mon Aug 07 18:48:49 2023 +0200
@@ -658,7 +658,7 @@
      if(LocaleNCompare((char *) magick,"BM",2) != 0)	/* "BM" is Windows or OS/2 file. */
      {
        if((LocaleNCompare((char *) magick,"CI",2) != 0) ||  /* "CI" is OS/2 Color Icon */
-          bmp_info.size!=12 && bmp_info.size!=40)	/* CI chunk must have biSize only 12 or 40 */
+          (bmp_info.size!=12 && bmp_info.size!=40))	/* CI chunk must have biSize only 12 or 40 */
              ThrowBMPReaderException(CorruptImageError,ImproperImageHeader,image);
      }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.