From b4fa898c478fed2fc7acfed4d63fe717f62dd45d Mon Sep 17 00:00:00 2001 From: jl777 <jameslee777@yahoo.com> Date: Sat, 28 Oct 2017 17:56:48 +0300 Subject: [PATCH] Fix crash --- iguana/exchanges/LP_nativeDEX.c | 2 +- iguana/exchanges/LP_signatures.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index 1a42b6686..90f69923f 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -754,7 +754,7 @@ void LP_price_broadcastloop(void *ctx) continue; if ( basepp != 0 && relpp != 0 && (price= relpp->myprices[basepp->ind]) > SMALLVAL) { - printf("automated price broadcast %s/%s %.8f\n",relpp->symbol,basepp->symbol,price); + //printf("automated price broadcast %s/%s %.8f\n",relpp->symbol,basepp->symbol,price); LP_pricepings(ctx,LP_myipaddr,LP_mypubsock,relpp->symbol,basepp->symbol,price); } } diff --git a/iguana/exchanges/LP_signatures.c b/iguana/exchanges/LP_signatures.c index e9b022e7a..cf6f17c56 100644 --- a/iguana/exchanges/LP_signatures.c +++ b/iguana/exchanges/LP_signatures.c @@ -204,7 +204,7 @@ char *LP_quotereceived(cJSON *argjson) int32_t LP_bitcoinsig_add(cJSON *item,bits256 priv,uint8_t *pubsecp,bits256 sighash) { - static void *ctx; int32_t i,j,siglen; uint8_t pub33[33],sig[65]; char sigstr[128]; + static void *ctx; int32_t i,j,siglen; uint8_t pub33[33],sig[65]; char sigstr[256]; if ( ctx == 0 ) ctx = bitcoin_ctx(); for (j=0; j<100; j++)