We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 35c7032 commit cb5ec7dCopy full SHA for cb5ec7d
coders/pnm.c
@@ -1832,7 +1832,7 @@ static MagickBooleanType WritePNMImage(const ImageInfo *image_info,Image *image)
1832
extent=(size_t) count;
1833
(void) strncpy((char *) q,buffer,extent);
1834
q+=extent;
1835
- if ((q-pixels+extent+1) >= sizeof(pixels))
+ if ((q-pixels+extent+2) >= sizeof(pixels))
1836
{
1837
*q++='\n';
1838
(void) WriteBlob(image,q-pixels,pixels);
@@ -1907,7 +1907,7 @@ static MagickBooleanType WritePNMImage(const ImageInfo *image_info,Image *image)
1907
1908
1909
1910
1911
1912
1913
0 commit comments