diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-11 20:02:39 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-11 20:02:39 +0200 |
commit | 6162c3d0c753e87236a2bb119907af780b788cfe (patch) | |
tree | 3ce7f3f87efbfbfc4808b6345a224d2e274ab15e /src/libmdsserver | |
parent | Use *_MAX instead of __WORDSIZE (diff) | |
download | mds-6162c3d0c753e87236a2bb119907af780b788cfe.tar.gz mds-6162c3d0c753e87236a2bb119907af780b788cfe.tar.bz2 mds-6162c3d0c753e87236a2bb119907af780b788cfe.tar.xz |
Fix bug
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/libmdsserver')
-rw-r--r-- | src/libmdsserver/mds-message.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); |