aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-06-03 18:33:01 +0200
committerMattias Andrée <maandree@kth.se>2024-06-03 18:33:01 +0200
commitfa6dbbe660f6d7b75e098c71db0858bb12c1df24 (patch)
tree4ee97208e997a860c25c2cd0cc27a0813d42ca44
parentEmpty signed commit (diff)
downloadlibcoopgamma-fa6dbbe660f6d7b75e098c71db0858bb12c1df24.tar.gz
libcoopgamma-fa6dbbe660f6d7b75e098c71db0858bb12c1df24.tar.bz2
libcoopgamma-fa6dbbe660f6d7b75e098c71db0858bb12c1df24.tar.xz
Fix libcoopgamma_get_gamma_recv: return all ramps, not just the last set as the first1.2.3
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--libcoopgamma.c2
1 files changed, 1 insertions, 1 deletions
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)