aboutsummaryrefslogtreecommitdiff
path: root/gis/xplanet/giflib6.patch
blob: 5495400fdf1c67e12ebb0d091fd4ad1db99fcc8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff -wbBur xplanet-1.3.1/src/libimage/gif.c xplanet-1.3.1.q/src/libimage/gif.c
--- xplanet-1.3.1/src/libimage/gif.c	2013-02-16 23:37:47.000000000 +0400
+++ xplanet-1.3.1.q/src/libimage/gif.c	2016-03-14 17:41:14.244144734 +0300
@@ -179,7 +179,7 @@
 	}
     }
     
-    if (DGifCloseFile(GifFile) == GIF_ERROR) {
+    if (DGifCloseFile(GifFile, NULL) == GIF_ERROR) {
 	return(0);
     }
 
@@ -493,7 +493,7 @@
 static void QuitGifError(GifFileType *GifFile)
 {
     fprintf(stderr, "Error writing GIF file\n");
-    if (GifFile != NULL) EGifCloseFile(GifFile);
+    if (GifFile != NULL) EGifCloseFile(GifFile, NULL);
 }
 
 int 
@@ -589,7 +589,7 @@
 	Ptr += width;
     }
 
-    if (EGifCloseFile(GifFile) == GIF_ERROR)
+    if (EGifCloseFile(GifFile, NULL) == GIF_ERROR)
 
     {
 	QuitGifError(GifFile);