From b8f9c948e7d60d67dcb0a1ea4af9a1ebb6ffc53e Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 15 Apr 2014 20:27:05 +1000 Subject: [PATCH] Shrink rpc req string size --- src/bitcoin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bitcoin.c b/src/bitcoin.c index e055c8d7..71c576f0 100644 --- a/src/bitcoin.c +++ b/src/bitcoin.c @@ -21,7 +21,7 @@ static const char *b58chars = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopq bool validate_address(connsock_t *cs, const char *address) { json_t *val, *res_val, *valid_val; - char rpc_req[256]; + char rpc_req[128]; bool ret = false; int len, i, j; @@ -50,7 +50,7 @@ bool validate_address(connsock_t *cs, const char *address) } } - snprintf(rpc_req, 256, "{\"method\": \"validateaddress\", \"params\": [\"%s\"]}\n", address); + snprintf(rpc_req, 128, "{\"method\": \"validateaddress\", \"params\": [\"%s\"]}\n", address); val = json_rpc_call(cs, rpc_req); if (!val) { LOGERR("Failed to get valid json response to validate_address");