diff --git a/iguana/exchanges/LP_prices.c b/iguana/exchanges/LP_prices.c index 0831173e0..6a5890f54 100644 --- a/iguana/exchanges/LP_prices.c +++ b/iguana/exchanges/LP_prices.c @@ -274,9 +274,9 @@ cJSON *LP_pubkeyjson(struct LP_pubkeyinfo *pubp) { init_hexbytes_noT(hexstr,pubp->rmd160,sizeof(pubp->rmd160)); jaddstr(obj,"rmd160",hexstr); - for (j=0; ipubsecp); i++) + for (j=0; jpubsecp); j++) { - if ( pubp->pubsecp[i] != 0 ) + if ( pubp->pubsecp[j] != 0 ) { init_hexbytes_noT(hexstr2,pubp->pubsecp,sizeof(pubp->pubsecp)); jaddstr(obj,"pubsecp",hexstr2);