aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2020-10-10 02:55:35 +0200
committerPřemysl Eric Janouch <p@janouch.name>2020-10-10 02:57:14 +0200
commit20c8578084314ec716171d0478b0205adddc5166 (patch)
tree6c876ad1f48b1f2fd40e43372199a6f2afb488aa
parent57a3b4e990e26679cb3ac85b00dadc8e16b256bc (diff)
downloadjson-rpc-shell-20c8578084314ec716171d0478b0205adddc5166.tar.gz
json-rpc-shell-20c8578084314ec716171d0478b0205adddc5166.tar.xz
json-rpc-shell-20c8578084314ec716171d0478b0205adddc5166.zip
Fix use of possibly uninitialised memory
-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;
}