Skip to content

Commit

Permalink
Use sizeof instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Jul 16, 2019
1 parent adb2da9 commit b9261b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/ps.c
Expand Up @@ -359,7 +359,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;
}
Expand Down

0 comments on commit b9261b1

Please sign in to comment.