From 0d637693dd9323a2f63077a2a989c6bcbe469b1b Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 30 Apr 2013 14:08:21 +0200 Subject: [PATCH] neverball: add patch for libpng-1.6 from pkgsrc. --- srcpkgs/neverball/patches/share_base__image.c.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 srcpkgs/neverball/patches/share_base__image.c.patch diff --git a/srcpkgs/neverball/patches/share_base__image.c.patch b/srcpkgs/neverball/patches/share_base__image.c.patch new file mode 100644 index 0000000000..023e096cd3 --- /dev/null +++ b/srcpkgs/neverball/patches/share_base__image.c.patch @@ -0,0 +1,13 @@ +$NetBSD: patch-share_base__image.c,v 1.1 2013/02/26 11:16:19 joerg Exp $ + +--- share/base_image.c.orig 2013-02-25 20:30:28.000000000 +0000 ++++ share/base_image.c +@@ -94,7 +94,7 @@ static void *image_load_png(const char * + default: longjmp(png_jmpbuf(readp), -1); + } + +- if (!(bytep = png_malloc(readp, h * png_sizeof(png_bytep)))) ++ if (!(bytep = png_malloc(readp, h * sizeof(*bytep)))) + longjmp(png_jmpbuf(readp), -1); + + /* Allocate the final pixel buffer and read pixels there. */