From 7b413ff07f3d5aad62adff72fda54041df26196e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Date: Tue, 13 May 2014 23:41:33 +0200 Subject: [PATCH] wrlib: wrong type in sizeof MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Amadeusz Sławiński --- wrlib/load_png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrlib/load_png.c b/wrlib/load_png.c index fa6723da..52148a8d 100644 --- a/wrlib/load_png.c +++ b/wrlib/load_png.c @@ -160,7 +160,7 @@ RImage *RLoadPNG(RContext *context, const char *file) image->background.blue = bkcolor->blue >> 8; } - png_rows = calloc(height, sizeof(char *)); + png_rows = calloc(height, sizeof(png_bytep)); if (!png_rows) { RErrorCode = RERR_NOMEMORY; fclose(f);