{
/* PCX file is too short to contain a valid PCX header */
fclose(file);
+
errno_pcx = PCX_FileInvalid;
return NULL;
}
width < 0 || height < 0)
{
free(file_buffer);
+
errno_pcx = PCX_FileInvalid;
return NULL;
}
if (options.verbose)
{
printf("%s is a %dx%d PC Paintbrush image with %d bitplanes\n",
- filename, pcx.xmax, pcx.ymax,
+ filename, width, height,
pcx.color_planes);
printf("depth: %d\n", pcx.bits_per_pixel);
printf("color_planes: %d\n", pcx.color_planes);
{
free(file_buffer);
freeImage(image);
+
errno_pcx = PCX_FileInvalid;
return NULL;
}