From b1eba67909b5db4d0fa4f23d9fb8626d215888d2 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 9 Nov 2016 13:15:38 -0300 Subject: [PATCH] test --- crypto777/iguana_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto777/iguana_utils.c b/crypto777/iguana_utils.c index 0c47220cf..b4b354d3b 100755 --- a/crypto777/iguana_utils.c +++ b/crypto777/iguana_utils.c @@ -365,7 +365,7 @@ int32_t decode_hex(unsigned char *bytes,int32_t n,char *hex) return(n); } if ( hex[n-1] == '\n' || hex[n-1] == '\r' ) - n--; + hex[--n] = 0; if ( n == 0 || (hex[n*2+1] == 0 && hex[n*2] != 0) ) { if ( n > 0 )