]> granicus.if.org Git - imagemagick/commitdiff
Fixed incorrect comparison.
authorDirk Lemstra <dirk@lemstra.org>
Sat, 3 Aug 2019 08:12:40 +0000 (10:12 +0200)
committerDirk Lemstra <dirk@lemstra.org>
Sat, 3 Aug 2019 08:12:40 +0000 (10:12 +0200)
coders/ps.c

index 8e991bc43b725fa849fa21c1bdc6be05eb570972..50aef44eb1047b26b2b275f61fa5a003135e34fa 100644 (file)
@@ -472,7 +472,7 @@ static void ReadPSInfo(const ImageInfo *image_info,Image *image,
           &bounds.x1,&bounds.y1,&bounds.x2,&bounds.y2);
         i=1;
       }
-    if (CompareMagickByteBuffer(&buffer,PageMedia,strlen(PageMedia)) == 0)
+    if (CompareMagickByteBuffer(&buffer,PageMedia,strlen(PageMedia)) != MagickFalse)
       {
         p=GetMagickByteBufferDatum(&buffer);
         count=(ssize_t) sscanf(p,PageMedia " %lf %lf %lf %lf",