freebsd-ports/graphics/giftool/files/extra-patch-ab
Mathieu Arnold 609351c1dc Upbreak.
- Regen patches.
- Move part of pkg-descr explaining the options to pkg-help, where it belongs.

PR:		208711
Submitted by:	tkato432 yahoo com
Sponsored by:	Absolight
2016-04-12 15:05:46 +00:00

11 lines
470 B
Text

--- readGIF.c.orig 1994-12-09 19:17:03 UTC
+++ readGIF.c
@@ -253,7 +253,7 @@ GIFStream *GIFReadFP(FILE *fd)
cur->data.image.cmapSize = 0;
}
- cur->data.image.data = (unsigned char *)malloc(cur->width * cur->height);
+ cur->data.image.data = (unsigned char *)malloc(cur->width * cur->height + 1);
cur->data.image.interlaced = BitSet(buf[8], INTERLACE);
readImage(fd, BitSet(buf[8], INTERLACE),
cur->width, cur->height, cur->data.image.data);