Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/1614
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Jun 22, 2019
1 parent 5c7fbf9 commit bfa3b96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coders/pnm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1762,13 +1762,13 @@ static MagickBooleanType WritePNMImage(const ImageInfo *image_info,Image *image)
{
*q++=(unsigned char) (GetPixelLuma(image,p) >= (QuantumRange/2.0) ?
'0' : '1');
*q++=' ';
if ((q-pixels+1) >= (ssize_t) sizeof(pixels))
{
*q++='\n';
(void) WriteBlob(image,q-pixels,pixels);
q=pixels;
}
*q++=' ';
p++;
}
*q++='\n';
Expand Down

0 comments on commit bfa3b96

Please sign in to comment.