From a330a2306cd4c08c9db0dfa6e55b7db9c0374ae3 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 5 Aug 2016 21:32:29 +0200 Subject: Fix unmarshal bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/types/output.c | 6 +----- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3-70-g09d2