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

Generated by cgit