Skip to content

Commit

Permalink
read multi-line comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Sep 9, 2023
1 parent 09e1e02 commit 09306f8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions coders/pnm.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,11 @@ static Image *ReadPNMImage(const ImageInfo *image_info,ExceptionInfo *exception)
/*
Comment.
*/
c=PNMComment(image,&comment_info);
c=ReadBlobByte(image);
while (c == '#')
{
c=PNMComment(image,&comment_info);
c=ReadBlobByte(image);
}
while (isspace((int) ((unsigned char) c)) != 0)
c=ReadBlobByte(image);
}
Expand Down

0 comments on commit 09306f8

Please sign in to comment.