From 768d9eab73a40481f3cab1363fd6ab1576e9ec75 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sat, 3 Aug 2019 10:12:40 +0200 Subject: [PATCH] Fixed incorrect comparison. --- coders/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", -- 2.40.0