From fa6dbbe660f6d7b75e098c71db0858bb12c1df24 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 3 Jun 2024 18:33:01 +0200 Subject: Fix libcoopgamma_get_gamma_recv: return all ramps, not just the last set as the first MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libcoopgamma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcoopgamma.c b/libcoopgamma.c index 30a68fe..b4a411a 100644 --- a/libcoopgamma.c +++ b/libcoopgamma.c @@ -2358,7 +2358,7 @@ libcoopgamma_get_gamma_recv(libcoopgamma_filter_table_t *restrict table, libcoop table->filters[i].ramps.u8.blue_size = table->blue_size; if (libcoopgamma_ramps_initialise_(&(table->filters[i].ramps), width) < 0) goto fail; - memcpy(table->filters->ramps.u8.red, payload + off, clutsize); + memcpy(table->filters[i].ramps.u8.red, payload + off, clutsize); off += clutsize; } if (off != n) -- cgit v1.2.3-70-g09d2