From 5176386568bc1141004cb3c5f0f993bc66711cb8 Mon Sep 17 00:00:00 2001 From: Randy Date: Wed, 28 Apr 2021 15:44:07 +0200 Subject: [PATCH] fix spng_get_splt() --- spng/spng.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spng/spng.c b/spng/spng.c index 8134c98e..87bf4f34 100644 --- a/spng/spng.c +++ b/spng/spng.c @@ -3770,7 +3770,7 @@ int spng_get_splt(spng_ctx *ctx, struct spng_splt *splt, uint32_t *n_splt) if(*n_splt < ctx->n_splt) return 1; - memcpy(splt, &ctx->splt_list, ctx->n_splt * sizeof(struct spng_splt)); + memcpy(splt, ctx->splt_list, ctx->n_splt * sizeof(struct spng_splt)); return 0; }