From bace2d9f9a2e095336a1d0f8bf5990c0fcfc7464 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Mon, 25 Jan 2016 10:57:47 +1100 Subject: [PATCH] Fix thinko --- src/libckpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libckpool.c b/src/libckpool.c index ef0abd1d..2eca670c 100644 --- a/src/libckpool.c +++ b/src/libckpool.c @@ -1318,7 +1318,7 @@ void _bkey_add_hex(char **bkey, const char *key, const char *hex, const char *fi msglen = le32toh(*lenptr); /* Add $key+length+bin */ - newlen = len + BKEY_LENLEN + hlen; + newlen = len + msglen + hlen; *bkey = realloc(*bkey, round_up_page(newlen)); /* Append keyname */