count=(ssize_t) FormatLocaleString(buffer,MagickPathExtent,
"%u ",ScaleQuantumToLong(index));
extent=(size_t) count;
- (void) strncpy((char *) q,buffer,extent);
- q+=extent;
- if ((q-pixels+extent+2) >= sizeof(pixels))
+ if ((q-pixels+extent+1) >= sizeof(pixels))
{
*q++='\n';
(void) WriteBlob(image,q-pixels,pixels);
q=pixels;
}
+ (void) strncpy((char *) q,buffer,extent);
+ q+=extent;
p+=GetPixelChannels(image);
}
*q++='\n';
ScaleQuantumToLong(GetPixelGreen(image,p)),
ScaleQuantumToLong(GetPixelBlue(image,p)));
extent=(size_t) count;
- (void) strncpy((char *) q,buffer,extent);
- q+=extent;
if ((q-pixels+extent+2) >= sizeof(pixels))
{
*q++='\n';
(void) WriteBlob(image,q-pixels,pixels);
q=pixels;
}
+ (void) strncpy((char *) q,buffer,extent);
+ q+=extent;
p+=GetPixelChannels(image);
}
*q++='\n';