giflib6.patch 804 B

12345678910111213141516171819202122232425262728293031
  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. - if (DGifCloseFile(GifFile) == GIF_ERROR) {
  8. + if (DGifCloseFile(GifFile, NULL) == GIF_ERROR) {
  9. return(0);
  10. }
  11. @@ -493,7 +493,7 @@
  12. static void QuitGifError(GifFileType *GifFile)
  13. {
  14. fprintf(stderr, "Error writing GIF file\n");
  15. - if (GifFile != NULL) EGifCloseFile(GifFile);
  16. + if (GifFile != NULL) EGifCloseFile(GifFile, NULL);
  17. }
  18. int
  19. @@ -589,7 +589,7 @@
  20. Ptr += width;
  21. }
  22. - if (EGifCloseFile(GifFile) == GIF_ERROR)
  23. + if (EGifCloseFile(GifFile, NULL) == GIF_ERROR)
  24. {
  25. QuitGifError(GifFile);