Skip to content

Commit 7689875

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/issues/1614
1 parent 29efd64 commit 7689875

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: coders/pnm.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1756,13 +1756,13 @@ static MagickBooleanType WritePNMImage(const ImageInfo *image_info,Image *image,
17561756
{
17571757
*q++=(unsigned char) (GetPixelLuma(image,p) >= (QuantumRange/2.0) ?
17581758
'0' : '1');
1759-
*q++=' ';
17601759
if ((q-pixels+1) >= (ssize_t) sizeof(pixels))
17611760
{
17621761
*q++='\n';
17631762
(void) WriteBlob(image,q-pixels,pixels);
17641763
q=pixels;
17651764
}
1765+
*q++=' ';
17661766
p+=GetPixelChannels(image);
17671767
}
17681768
*q++='\n';

0 commit comments

Comments
 (0)