File: libgif.patch

package info (click to toggle)
metapixel 1.0.2-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 464 kB
  • sloc: ansic: 5,428; perl: 175; xml: 122; makefile: 74
file content (25 lines) | stat: -rw-r--r-- 572 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: prepare for giflib5
 See #803285
Applied-Upstream: https://github.com/schani/metapixel/commit/98ee9daa093b6c334941242e63f90b1c2876eb4f

--- a/rwimg/rwgif.c
+++ b/rwimg/rwgif.c
@@ -54,7 +54,7 @@
     
     assert(data != 0);
     
-    data->file = DGifOpenFileName(filename);
+    data->file = DGifOpenFileName(filename, NULL);
     
     assert(data->file !=0);
         
@@ -137,7 +137,7 @@
     }
     free(buffer);
     
-    assert(DGifCloseFile(data->file) == GIF_OK);
+    assert(DGifCloseFile(data->file, NULL) == GIF_OK);
     
     return data;
 }