From feef1e6512477d848b8547ccf283530ca104430f Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 3 Jul 2019 03:20:09 -1100 Subject: [PATCH] Null term coinaddr --- src/komodo_nSPV.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/komodo_nSPV.h b/src/komodo_nSPV.h index bd5b5cbef..06a251ca3 100644 --- a/src/komodo_nSPV.h +++ b/src/komodo_nSPV.h @@ -452,12 +452,14 @@ void komodo_nSPVreq(CNode *pfrom,std::vector request) // received a req } else if ( request[0] == NSPV_UTXOS ) { - if ( timestamp > pfrom->lastutxos + ASSETCHAINS_BLOCKTIME/2 ) + //if ( timestamp > pfrom->lastutxos + ASSETCHAINS_BLOCKTIME/2 ) { struct NSPV_utxosresp U; char coinaddr[64]; + printf("len.%d request[1] %d\n",len,request[1]); if ( len < 64 && request[1] == len-2 ) { memcpy(coinaddr,&request[2],request[1]); + coinaddr[request[1]] = 0; memset(&U,0,sizeof(U)); slen = NSPV_getaddressutxos(&U,coinaddr); response.resize(1 + slen);