(png/rpng.c) Cleanup

This commit is contained in:
twinaphex 2015-02-19 18:13:28 +01:00
parent af91764fc8
commit 8da734c921

View File

@ -674,7 +674,7 @@ bool rpng_load_image_argb_iterate(FILE *file, struct png_chunk *chunk,
if (fread(&palette, 3, entries, file) != entries)
return false;
if (!png_read_plte_into_buf(palette, chunk->size / 3))
if (!png_read_plte_into_buf(palette, entries))
return false;
*increment_size = sizeof(uint32_t);