summaryrefslogtreecommitdiff
path: root/msgpack/pack.h
diff options
context:
space:
mode:
Diffstat (limited to 'msgpack/pack.h')
-rw-r--r--msgpack/pack.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/pack.h b/msgpack/pack.h
index d7e0867..58f021e 100644
--- a/msgpack/pack.h
+++ b/msgpack/pack.h
@@ -72,7 +72,7 @@ static inline int msgpack_pack_write(msgpack_packer* pk, const char *data, size_
if (len + l > bs) {
bs = (len + l) * 2;
- buf = realloc(pk->buf, bs);
+ buf = realloc(buf, bs);
if (!buf) return -1;
}
memcpy(buf + len, data, l);