aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-05 21:32:29 +0200
committerMattias Andrée <maandree@kth.se>2016-08-05 21:32:29 +0200
commita330a2306cd4c08c9db0dfa6e55b7db9c0374ae3 (patch)
tree867670857938f9671796e17447828705df0feb35 /src
parenttypo + state dumping (diff)
downloadcoopgammad-a330a2306cd4c08c9db0dfa6e55b7db9c0374ae3.tar.gz
coopgammad-a330a2306cd4c08c9db0dfa6e55b7db9c0374ae3.tar.bz2
coopgammad-a330a2306cd4c08c9db0dfa6e55b7db9c0374ae3.tar.xz
Fix unmarshal bug
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src')
-rw-r--r--src/types/output.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/types/output.c b/src/types/output.c
index 1745f90..b94d090 100644
--- a/src/types/output.c
+++ b/src/types/output.c
@@ -255,12 +255,8 @@ size_t output_unmarshal(struct output* restrict this, const void* restrict buf)
return 0;
off += n;
- this->saved_ramps.u8.red_size = this->red_size;
- this->saved_ramps.u8.green_size = this->green_size;
- this->saved_ramps.u8.blue_size = this->blue_size;
-
- off += n = gamma_ramps_unmarshal(&(this->saved_ramps), bs, this->ramps_size);
COPY_RAMP_SIZES(&(this->saved_ramps.u8), this);
+ off += n = gamma_ramps_unmarshal(&(this->saved_ramps), bs + off, this->ramps_size);
if (n == 0)
return 0;