You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-puzzle/neverball/files/neverball-1.5.4-libpng.patch

22 lines
711 B

Index: neverball-1.5.4/share/base_image.c
===================================================================
--- neverball-1.5.4.orig/share/base_image.c
+++ neverball-1.5.4/share/base_image.c
@@ -15,6 +15,7 @@
#include <png.h>
#include <jpeglib.h>
#include <stdlib.h>
+#include <string.h>
#include <assert.h>
#include "glext.h"
@@ -94,7 +95,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(png_bytep))))
longjmp(png_jmpbuf(readp), -1);
/* Allocate the final pixel buffer and read pixels there. */