GraphicsMagick: Mistype in BMP coder.

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.7461.1691426235.1439.graphicsmagick-commit@lists.sourceforge.net>
changeset bd39ba171487 in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=bd39ba171487
summary: Mistype in BMP coder.

diffstat:

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

diffs (15 lines):

diff -r 5bd04a2ebedb -r bd39ba171487 coders/bmp.c
--- a/coders/bmp.c	Mon Aug 07 10:29:00 2023 +0200
+++ b/coders/bmp.c	Mon Aug 07 18:36:19 2023 +0200
@@ -655,9 +655,9 @@
 
     if (count != 2)		/* Found "BA" header from above above */
       ThrowBMPReaderException(CorruptImageError,ImproperImageHeader,image);
-     if((LocaleNCompare((char *) magick,"BM",2) != 0)	/* "BM" is Windows or OS/2 file. */
+     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 */
+       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 */
              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.