From 41278fa2c6e9fdef58f71b9391d239f9dae4736b Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 22 Sep 2016 12:56:25 -0300 Subject: [PATCH] test --- basilisk/basilisk_MSG.c | 2 +- basilisk/basilisk_tradebot.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/basilisk/basilisk_MSG.c b/basilisk/basilisk_MSG.c index 9d9483133..944058fd4 100755 --- a/basilisk/basilisk_MSG.c +++ b/basilisk/basilisk_MSG.c @@ -325,7 +325,7 @@ int32_t basilisk_message_returned(uint8_t *key,uint8_t *data,int32_t maxlen,cJSO decode_hex(data,datalen,hexstr); //printf("decoded hexstr.[%d]\n",datalen); retval = datalen; - } else printf("datalen.%d < maxlen.%d\n",datalen,maxlen); + } else printf("datalen.%d >= maxlen.%d\n",datalen,maxlen); } } } //else printf("no hexstr.%p or datalen.%d (%s)\n",hexstr,datalen,jprint(json,0)); diff --git a/basilisk/basilisk_tradebot.c b/basilisk/basilisk_tradebot.c index 091eaa090..e2a1ba707 100755 --- a/basilisk/basilisk_tradebot.c +++ b/basilisk/basilisk_tradebot.c @@ -236,7 +236,7 @@ double basilisk_request_listprocess(struct supernet_info *myinfo,struct basilisk double basilisk_process_results(struct supernet_info *myinfo,struct basilisk_request *issueR,cJSON *retjson,double hwm) { - cJSON *array,*item; uint8_t *hexdata,*allocptr,hexspace[8192]; char *hexstr; int32_t i,hexlen,n,m,nonz; struct basilisk_request tmpR,R,refR,list[BASILISK_MAXRELAYS]; double metric=0.; + cJSON *array,*item; uint8_t *hexdata,*allocptr,hexspace[32768]; char *hexstr; int32_t i,hexlen,n,m,nonz; struct basilisk_request tmpR,R,refR,list[BASILISK_MAXRELAYS]; double metric=0.; memset(&refR,0,sizeof(refR)); //printf("process.(%s)\n",jprint(retjson,0)); if ( (array= jarray(&n,retjson,"messages")) != 0 )