diff options
author | root <root@rshg054.dnsready.net> | 2013-09-01 02:34:45 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-09-01 02:34:45 -0700 |
commit | bf1faf85b813a0171c73fa31db1c5a5110d32420 (patch) | |
tree | 4c221d4b0dc3ca4f00da018be6d8959506b90123 /community/ekg2/ekg2-0.3.1-giflib5.patch | |
parent | f20ef2edd6d039b732c288f67377cb752a8d5351 (diff) |
Sun Sep 1 02:29:48 PDT 2013
Diffstat (limited to 'community/ekg2/ekg2-0.3.1-giflib5.patch')
-rw-r--r-- | community/ekg2/ekg2-0.3.1-giflib5.patch | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/community/ekg2/ekg2-0.3.1-giflib5.patch b/community/ekg2/ekg2-0.3.1-giflib5.patch index f0e6885c0..d11b1ecec 100644 --- a/community/ekg2/ekg2-0.3.1-giflib5.patch +++ b/community/ekg2/ekg2-0.3.1-giflib5.patch @@ -1,12 +1,30 @@ diff -rupN a/plugins/gg/commands.c b/plugins/gg/commands.c --- a/plugins/gg/commands.c 2011-03-17 18:08:11.000000000 +0100 -+++ b/plugins/gg/commands.c 2013-07-29 18:45:51.296790942 +0200 -@@ -1034,7 +1034,7 @@ static int token_gif_load (char *fname, ++++ b/plugins/gg/commands.c 2013-08-31 11:31:42.521377436 +0200 +@@ -1029,14 +1029,15 @@ static int token_gif_load (char *fname, + GifFileType *file; + int fd; + fd = open(fname, O_RDONLY); ++ int giferror; + if (fd == -1) { + snprintf(errbuf, sizeof(errbuf), "open(%s): %m", fname); goto err; } - if (!(file = DGifOpenFileHandle(fd))) { -+ if (!(file = DGifOpenFileHandle(fd, NULL))) { ++ if (!(file = DGifOpenFileHandle(fd, giferror))) { snprintf(errbuf, sizeof(errbuf), "DGifOpenFileHandle(): %d", - GifLastError()); +- GifLastError()); ++ GifErrorString(giferror)); goto err2; + } + +@@ -1046,7 +1047,7 @@ static int token_gif_load (char *fname, + } + + if (DGifSlurp(file) != GIF_OK) { +- snprintf(errbuf, sizeof(errbuf), "DGifSlurp(): %d", GifLastError()); ++ snprintf(errbuf, sizeof(errbuf), "DGifSlurp(): %d", GifErrorString(GIF_ERROR)); + goto err3; + } + |