xplanet/xplanet-1.3.1-libgif-5.2.1.patch

31 lines
804 B
Diff

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);