aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--json-rpc-shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json-rpc-shell.c b/json-rpc-shell.c
index 33321d7..7ce8db6 100644
--- a/json-rpc-shell.c
+++ b/json-rpc-shell.c
@@ -2924,7 +2924,7 @@ json_rpc_call_raw (struct app_context *ctx,
if (error)
return error;
- maybe_print_verbose (ctx, ATTR_INCOMING, buf->str, buf->len);
+ maybe_print_verbose (ctx, ATTR_INCOMING, buf->str, buf->len + 1);
return NULL;
}