From 822ce18faf7c85d7a604d5aacba4497d0de6e9e4 Mon Sep 17 00:00:00 2001 From: joerg Date: Tue, 26 Feb 2013 11:16:19 +0000 Subject: Fix png update fallout. --- games/neverball/distinfo | 3 ++- games/neverball/patches/patch-share_base__image.c | 13 +++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 games/neverball/patches/patch-share_base__image.c (limited to 'games') diff --git a/games/neverball/distinfo b/games/neverball/distinfo index bcf7f2a195a..439991a18c8 100644 --- a/games/neverball/distinfo +++ b/games/neverball/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.7 2009/12/03 06:33:46 snj Exp $ +$NetBSD: distinfo,v 1.8 2013/02/26 11:16:19 joerg Exp $ SHA1 (neverball-1.5.4.tar.gz) = 619c227e1958bd60738f12dbbde9b30c91dd79a7 RMD160 (neverball-1.5.4.tar.gz) = f546b5e6c12df1a125976a7e23fa55146480241d Size (neverball-1.5.4.tar.gz) = 26767623 bytes SHA1 (patch-ab) = 15b6864e06d363698c0855af42d0d4f7b010886f +SHA1 (patch-share_base__image.c) = c7dd953bec0a8b44e18153c17d66b2cc7169b6d0 diff --git a/games/neverball/patches/patch-share_base__image.c b/games/neverball/patches/patch-share_base__image.c new file mode 100644 index 00000000000..023e096cd33 --- /dev/null +++ b/games/neverball/patches/patch-share_base__image.c @@ -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. */ -- cgit v1.2.3