]> git.pld-linux.org Git - packages/pslib.git/blame - pslib-giflib.patch
- added giflib patch (update for giflib 5 API)
[packages/pslib.git] / pslib-giflib.patch
CommitLineData
97b5c27a
JB
1--- pslib-0.4.5/src/pslib.c.orig 2011-03-29 11:12:25.000000000 +0200
2+++ pslib-0.4.5/src/pslib.c 2014-02-01 16:48:19.912189358 +0100
3@@ -4906,13 +4906,13 @@
4 }
5 memset(psimage, 0, sizeof(PSImage));
6
7- if ((gft = DGifOpenFileName(filename)) == NULL) {
8+ if ((gft = DGifOpenFileName(filename, NULL)) == NULL) {
9 ps_error(psdoc, PS_RuntimeError, _("%s is not a gif file!"), filename);
10 fclose(fp);
11 return(0);
12 }
13 if (DGifSlurp(gft) != GIF_OK) {
14- ps_error(psdoc, PS_RuntimeError, _("Error %d while reading gif file!"), GifLastError());
15+ ps_error(psdoc, PS_RuntimeError, _("Error %d while reading gif file!"), gft->Error);
16 fclose(fp);
17 return(0);
18 }
This page took 0.054254 seconds and 4 git commands to generate.