tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
xplanet: fix giflib update
Domen Kožar
11 years ago
b4a7c1a6
b76e8417
+15
-4
1 changed file
expand all
collapse all
unified
split
pkgs
applications
science
astronomy
xplanet
giflib.patch
+15
-4
pkgs/applications/science/astronomy/xplanet/giflib.patch
···
1
1
-
diff -wbBur xplanet-1.3.0/src/libimage/gif.c /home/sergej/tmp/BUILD/staging-i686/sergej/build/xplanet/src/xplanet-1.3.0/src/libimage/gif.c
1
1
+
diff -wbBur xplanet-1.3.0/src/libimage/gif.c xplanet-1.3.0.my/src/libimage/gif.c
2
2
--- xplanet-1.3.0/src/libimage/gif.c 2006-03-26 01:50:51.000000000 +0300
3
3
-
+++ /home/sergej/tmp/BUILD/staging-i686/sergej/build/xplanet/src/xplanet-1.3.0/src/libimage/gif.c 2013-07-30 18:21:17.412474692 +0400
3
3
+
+++ xplanet-1.3.0.my/src/libimage/gif.c 2014-05-29 18:59:14.830652716 +0400
4
4
@@ -20,7 +20,7 @@
5
5
6
6
#include <stdio.h>
···
59
59
return(0);
60
60
}
61
61
}
62
62
+
@@ -154,7 +154,7 @@
63
63
+
64
64
+
free(buffer);
65
65
+
66
66
+
- DGifCloseFile(infile);
67
67
+
+ DGifCloseFile(infile, NULL);
68
68
+
return(1);
69
69
+
}
70
70
+
62
71
@@ -178,7 +178,7 @@
63
72
return(0);
64
73
}
···
119
128
return(0);
120
129
}
121
130
ptr += width;
122
122
-
@@ -233,7 +233,7 @@
131
131
+
@@ -232,8 +232,8 @@
132
132
+
123
133
EGifSpew(outfile);
124
134
125
125
-
if (EGifCloseFile(outfile) == GIF_ERROR)
135
135
+
- if (EGifCloseFile(outfile) == GIF_ERROR)
126
136
- PrintGifError();
137
137
+
+ if (EGifCloseFile(outfile, NULL) == GIF_ERROR)
127
138
+ printf("%s\n", GifErrorString(GIF_ERROR));
128
139
129
140
free(buffer);