1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 04:20:27 +01:00

wrlib: wrong type in sizeof

Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
This commit is contained in:
Amadeusz Sławiński
2014-05-13 23:41:33 +02:00
committed by Carlos R. Mafra
parent 56772f792c
commit 7b413ff07f

View File

@@ -160,7 +160,7 @@ RImage *RLoadPNG(RContext *context, const char *file)
image->background.blue = bkcolor->blue >> 8; image->background.blue = bkcolor->blue >> 8;
} }
png_rows = calloc(height, sizeof(char *)); png_rows = calloc(height, sizeof(png_bytep));
if (!png_rows) { if (!png_rows) {
RErrorCode = RERR_NOMEMORY; RErrorCode = RERR_NOMEMORY;
fclose(f); fclose(f);