summaryrefslogtreecommitdiffstats
path: root/network/driftnet/driftnet.patch
blob: 166c75bc2f89b6aca24f761d9a48351478024d53 (plain)
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
26
27
28
29
--- driftnet-0.1.6_p20090401/gif.c.old	2016-01-04 23:08:50.734142148 +0700
+++ driftnet-0.1.6_p20090401/gif.c	2016-01-04 23:11:58.759931300 +0700
@@ -20,7 +20,7 @@
  */
 int gif_load_hdr(img I) {
     GifFileType *g;
-    g = I->us = DGifOpenFileHandle(fileno(I->fp));
+    g = I->us = DGifOpenFileHandle(fileno(I->fp), NULL);
     if (!I->us) {
         I->err = IE_HDRFORMAT;
         return 0;
@@ -36,7 +36,7 @@
  * Abort loading a GIF file after the header is done.
  */
 int gif_abort_load(img I) {
-    DGifCloseFile((GifFileType*)I->us);
+    DGifCloseFile((GifFileType*)I->us, NULL);
     return 1;
 }
 
@@ -114,7 +114,7 @@
     ret = 1;
 fail:
 
-    DGifCloseFile(g);
+    DGifCloseFile(g, NULL);
     
     return ret;
 }