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 29efd64 commit 7689875
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 @@ -1756,13 +1756,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+=GetPixelChannels(image);
}
*q++='\n';
Expand Down

0 comments on commit 7689875

Please sign in to comment.