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