SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
30
x11/xplanet/patches/patch-src_libimage_gif_c
Normal file
30
x11/xplanet/patches/patch-src_libimage_gif_c
Normal file
|
@ -0,0 +1,30 @@
|
|||
Index: src/libimage/gif.c
|
||||
--- src/libimage/gif.c.orig
|
||||
+++ src/libimage/gif.c
|
||||
@@ -179,7 +179,7 @@ read_gif(const char *filename, int *width, int *height
|
||||
}
|
||||
}
|
||||
|
||||
- if (DGifCloseFile(GifFile) == GIF_ERROR) {
|
||||
+ if (DGifCloseFile(GifFile, NULL) == GIF_ERROR) {
|
||||
return(0);
|
||||
}
|
||||
|
||||
@@ -493,7 +493,7 @@ SortCmpRtn(const void *Entry1,
|
||||
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 @@ write_gif(const char *filename, int width, int height,
|
||||
Ptr += width;
|
||||
}
|
||||
|
||||
- if (EGifCloseFile(GifFile) == GIF_ERROR)
|
||||
+ if (EGifCloseFile(GifFile, NULL) == GIF_ERROR)
|
||||
|
||||
{
|
||||
QuitGifError(GifFile);
|
Loading…
Add table
Add a link
Reference in a new issue