From 6162c3d0c753e87236a2bb119907af780b788cfe Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 11 Jul 2016 20:02:39 +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/libmdsserver/mds-message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libmdsserver') diff --git a/src/libmdsserver/mds-message.c b/src/libmdsserver/mds-message.c index 5f2c536..b04679a 100644 --- a/src/libmdsserver/mds-message.c +++ b/src/libmdsserver/mds-message.c @@ -535,7 +535,7 @@ int mds_message_unmarshal(mds_message_t* restrict this, char* restrict data) /* Fill the header list, payload and read buffer. */ - for (i = 0; i < this->header_count; i++) + for (i = 0; i < header_count; i++) { n = strlen(data) + 1; fail_if (xmemdup(this->headers[i], data, n, char)); -- cgit v1.2.3-70-g09d2