neverball: add patch for libpng-1.6 from pkgsrc.

This commit is contained in:
Juan RP 2013-04-30 14:08:21 +02:00
parent 99b79a28e5
commit 0d637693dd

View file

@ -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. */