mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-18 20:10:29 +01:00
wrlib: wrong type in sizeof
Signed-off-by: Amadeusz Sławiński <amade@asmblr.net>
This commit is contained in:
committed by
Carlos R. Mafra
parent
56772f792c
commit
7b413ff07f
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user