From bea3626e4a0b3cdd75288a1d147fe4634fd197eb Mon Sep 17 00:00:00 2001 From: Randy Date: Fri, 28 Jan 2022 09:11:51 +0100 Subject: [PATCH] whoops --- spng/spng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spng/spng.c b/spng/spng.c index 337a669..c975494 100644 --- a/spng/spng.c +++ b/spng/spng.c @@ -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++) {