From: Dirk Lemstra Date: Tue, 16 Jul 2019 19:21:46 +0000 (+0200) Subject: Use sizeof instead. X-Git-Tag: 7.0.8-54~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9667a9034a5eeedb30dfb18cfd1083ff32fd679b;p=imagemagick Use sizeof instead. --- diff --git a/coders/ps.c b/coders/ps.c index 2cdb6f6b6..9fc8b4afe 100644 --- a/coders/ps.c +++ b/coders/ps.c @@ -363,7 +363,7 @@ static void ReadPSInfo(const ImageInfo *image_info,Image *image, i=0; for (c=ReadMagickByteBuffer(&buffer); c != EOF; c=ReadMagickByteBuffer(&buffer)) { - if ((isspace(c) != 0) || ((i+1) == MagickPathExtent)) + if ((isspace(c) != 0) || ((i+1) == sizeof(name))) break; name[i++]=(char) c; }