xplanet: fix giflib update

+15 -4
+15 -4
pkgs/applications/science/astronomy/xplanet/giflib.patch
··· 1 - diff -wbBur xplanet-1.3.0/src/libimage/gif.c /home/sergej/tmp/BUILD/staging-i686/sergej/build/xplanet/src/xplanet-1.3.0/src/libimage/gif.c 1 + diff -wbBur xplanet-1.3.0/src/libimage/gif.c xplanet-1.3.0.my/src/libimage/gif.c 2 2 --- xplanet-1.3.0/src/libimage/gif.c 2006-03-26 01:50:51.000000000 +0300 3 - +++ /home/sergej/tmp/BUILD/staging-i686/sergej/build/xplanet/src/xplanet-1.3.0/src/libimage/gif.c 2013-07-30 18:21:17.412474692 +0400 3 + +++ xplanet-1.3.0.my/src/libimage/gif.c 2014-05-29 18:59:14.830652716 +0400 4 4 @@ -20,7 +20,7 @@ 5 5 6 6 #include <stdio.h> ··· 59 59 return(0); 60 60 } 61 61 } 62 + @@ -154,7 +154,7 @@ 63 + 64 + free(buffer); 65 + 66 + - DGifCloseFile(infile); 67 + + DGifCloseFile(infile, NULL); 68 + return(1); 69 + } 70 + 62 71 @@ -178,7 +178,7 @@ 63 72 return(0); 64 73 } ··· 119 128 return(0); 120 129 } 121 130 ptr += width; 122 - @@ -233,7 +233,7 @@ 131 + @@ -232,8 +232,8 @@ 132 + 123 133 EGifSpew(outfile); 124 134 125 - if (EGifCloseFile(outfile) == GIF_ERROR) 135 + - if (EGifCloseFile(outfile) == GIF_ERROR) 126 136 - PrintGifError(); 137 + + if (EGifCloseFile(outfile, NULL) == GIF_ERROR) 127 138 + printf("%s\n", GifErrorString(GIF_ERROR)); 128 139 129 140 free(buffer);