Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > 55500e3c5abac6e839a3704b6433c2ba > files > 1

giflib-5.1.8-1.mga6.src.rpm

diff -rupN giflib-5.0.5/util/giffix.c giflib-5.0.5-new/util/giffix.c
--- giflib-5.0.5/giffix.c	2013-08-29 21:56:39.000000000 +0200
+++ giflib-5.0.5-new/giffix.c	2015-12-22 13:33:04.882199348 +0100
@@ -91,7 +91,7 @@ int main(int argc, char **argv)
 	GifFileIn->SColorMap) == GIF_ERROR)
 	QuitGifError(GifFileIn, GifFileOut);
 
-    if ((LineBuffer = (GifRowType) malloc(GifFileIn->SWidth)) == NULL)
+    if ((LineBuffer = (GifRowType) malloc(GifFileIn->Image.Width)) == NULL)
 	GIF_EXIT("Failed to allocate memory required, aborted.");
 
     /* Scan the content of the GIF file and load the image(s) in: */