diff options
author | Mattias Andrée <maandree@kth.se> | 2016-08-19 20:38:33 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-08-19 20:38:33 +0200 |
commit | 2169f5123ea7e33f7196348509308b9783ee5d09 (patch) | |
tree | 33beedbaf0addab64eab28be449319e7f75bc7ba /src | |
parent | typo (diff) | |
download | libcoopgamma-2169f5123ea7e33f7196348509308b9783ee5d09.tar.gz libcoopgamma-2169f5123ea7e33f7196348509308b9783ee5d09.tar.bz2 libcoopgamma-2169f5123ea7e33f7196348509308b9783ee5d09.tar.xz |
fix bug
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src')
-rw-r--r-- | src/libcoopgamma.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcoopgamma.c b/src/libcoopgamma.c index 8d182d0..1841ef6 100644 --- a/src/libcoopgamma.c +++ b/src/libcoopgamma.c @@ -115,7 +115,7 @@ const char* argv0 __attribute__((weak)) = "libcoopgamma"; #define marshal_string(datum) \ ((datum) == NULL ? marshal_prim(1, char) : \ - (marshal_prim(0, char), marshal_buffer(datum, strlen(datum) + 1))) + (marshal_prim(0, char), marshal_buffer((datum), strlen(datum) + 1))) #define unmarshal_string(datum) \ do \ @@ -816,6 +816,7 @@ int libcoopgamma_error_unmarshal(libcoopgamma_error_t* restrict this, unmarshal_version(LIBCOOPGAMMA_ERROR_VERSION); unmarshal_prim(this->number, uint64_t); unmarshal_prim(this->custom, int); + unmarshal_prim(this->server_side, int); unmarshal_string(this->description); UNMARSHAL_EPILOGUE; } |