summaryrefslogtreecommitdiff
path: root/staging/gif2png/gif2png-2.5.4-libpng15.patch
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2012-02-05 17:25:05 +0000
committerParabola <dev@list.parabolagnulinux.org>2012-02-05 17:25:05 +0000
commit359d940358dec836dd0acfe9d9caf0b1ff0a97fe (patch)
treeeeed5f77c8417a98fe5b8538d3c019d1cea00c04 /staging/gif2png/gif2png-2.5.4-libpng15.patch
parentcdc66cc7110e78bf1197f9effc70422114f9341b (diff)
Sun Feb 5 17:25:01 UTC 2012
Diffstat (limited to 'staging/gif2png/gif2png-2.5.4-libpng15.patch')
-rw-r--r--staging/gif2png/gif2png-2.5.4-libpng15.patch43
1 files changed, 0 insertions, 43 deletions
diff --git a/staging/gif2png/gif2png-2.5.4-libpng15.patch b/staging/gif2png/gif2png-2.5.4-libpng15.patch
deleted file mode 100644
index 9e5c333bb..000000000
--- a/staging/gif2png/gif2png-2.5.4-libpng15.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/graphics/gif2png/patches/patch-aa
-
---- gif2png.c
-+++ gif2png.c
-@@ -10,6 +10,7 @@
- #include <string.h>
- #include <stdlib.h>
- #include <unistd.h> /* for isatty() */
-+#include <zlib.h>
-
- #if !defined(TRUE)
- #define FALSE 0
-@@ -120,8 +121,8 @@ int writefile(struct GIFelement *s,struc
- int colors_used = 0;
- byte remap[MAXCMSIZE];
- int low_prec;
-- png_struct *png_ptr = xalloc(sizeof (png_struct));
-- png_info *info_ptr = xalloc(sizeof (png_info));
-+ png_struct *png_ptr;
-+ png_info *info_ptr;
- int p;
- int gray_bitdepth;
- png_color pal_rgb[MAXCMSIZE], *pltep;
-@@ -136,6 +137,19 @@ int writefile(struct GIFelement *s,struc
- png_text software;
- png_text comment;
-
-+ png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
-+ if (png_ptr == NULL) {
-+ fprintf(stderr, "gif2png: fatal error, out of memory\n");
-+ fprintf(stderr, "gif2png: exiting ungracefully\n");
-+ exit(1);
-+ }
-+ info_ptr = png_create_info_struct(png_ptr);
-+ if (info_ptr == NULL) {
-+ fprintf(stderr, "gif2png: fatal error, out of memory\n");
-+ fprintf(stderr, "gif2png: exiting ungracefully\n");
-+ exit(1);
-+ }
-+
- /* these volatile declarations prevent gcc warnings ("variable might be
- * clobbered by `longjmp' or `vfork'") */
- volatile int gray = TRUE;