Skip to content

Commit bfa3b96

Browse files
author
Cristy
committed
https://github.com/ImageMagick/ImageMagick/issues/1614
1 parent 5c7fbf9 commit bfa3b96

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
@@ -1762,13 +1762,13 @@ static MagickBooleanType WritePNMImage(const ImageInfo *image_info,Image *image)
17621762
{
17631763
*q++=(unsigned char) (GetPixelLuma(image,p) >= (QuantumRange/2.0) ?
17641764
'0' : '1');
1765-
*q++=' ';
17661765
if ((q-pixels+1) >= (ssize_t) sizeof(pixels))
17671766
{
17681767
*q++='\n';
17691768
(void) WriteBlob(image,q-pixels,pixels);
17701769
q=pixels;
17711770
}
1771+
*q++=' ';
17721772
p++;
17731773
}
17741774
*q++='\n';

0 commit comments

Comments
 (0)