From 2169f5123ea7e33f7196348509308b9783ee5d09 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 19 Aug 2016 20:38:33 +0200 Subject: fix bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/libcoopgamma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3-70-g09d2