This commit is contained in:
Randy 2022-01-28 09:11:51 +01:00
parent b2de87b6c9
commit bea3626e4a

View File

@ -4605,7 +4605,7 @@ static int encode_row(spng_ctx *ctx, const void *row, size_t len)
const unsigned char *row_uc = row;
uint8_t sample;
memset(scanline, ctx->subimage[pass].scanline_width, len);
memset(scanline, 0, ctx->subimage[pass].scanline_width);
for(k=0; k < ctx->subimage[pass].width; k++)
{