aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-08-05 15:36:36 +0200
committerMattias Andrée <maandree@kth.se>2016-08-05 15:36:36 +0200
commit26c01dfd36077772d44ce127393e137c5c1e4554 (patch)
tree545dca7fddf8f213b6f562745b69aed7a7d884e8 /src
parentFix bugs (diff)
downloadcoopgammad-26c01dfd36077772d44ce127393e137c5c1e4554.tar.gz
coopgammad-26c01dfd36077772d44ce127393e137c5c1e4554.tar.bz2
coopgammad-26c01dfd36077772d44ce127393e137c5c1e4554.tar.xz
Fix unmarshal bug
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/types/output.c1
1 files changed, 1 insertions, 0 deletions
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;