From 26c01dfd36077772d44ce127393e137c5c1e4554 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 5 Aug 2016 15:36:36 +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 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/types/output.c b/src/types/output.c index cc2c52b..1745f90 100644 --- a/src/types/output.c +++ b/src/types/output.c @@ -253,6 +253,7 @@ size_t output_unmarshal(struct output* restrict this, const void* restrict buf) this->name = memdup(bs + off, n); if (this->name == NULL) return 0; + off += n; this->saved_ramps.u8.red_size = this->red_size; this->saved_ramps.u8.green_size = this->green_size; -- cgit v1.2.3-70-g09d2