From: Dirk Lemstra Date: Sat, 3 Aug 2019 08:12:40 +0000 (+0200) Subject: Fixed incorrect comparison. X-Git-Tag: 7.0.8-59~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=768d9eab73a40481f3cab1363fd6ab1576e9ec75;p=imagemagick Fixed incorrect comparison. --- diff --git a/coders/ps.c b/coders/ps.c index 8e991bc43..50aef44eb 100644 --- a/coders/ps.c +++ b/coders/ps.c @@ -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",