From ac718490d885834e70344de27bb2718b5f97a971 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 24 May 2016 01:15:39 -0500 Subject: [PATCH] test --- iguana/iguana_instantdex.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_instantdex.c b/iguana/iguana_instantdex.c index 9e212f35f..26b5a0501 100755 --- a/iguana/iguana_instantdex.c +++ b/iguana/iguana_instantdex.c @@ -415,6 +415,10 @@ char *instantdex_sendcmd(struct supernet_info *myinfo,struct instantdex_offer *o nxt64bits = acct777_nxt64bits(myinfo->myaddr.persistent); reqstr = jprint(argjson,0); slen = (int32_t)(strlen(reqstr) + 1); + + extraser = (void *)swap->deck; + extralen = (int32_t)sizeof(swap->deck); + datalen = (int32_t)slen + extralen + olen; msg = calloc(1,datalen + sizeof(*msg) + sizeof(swap->deck)); for (i=0; icmd); i++) @@ -423,8 +427,6 @@ char *instantdex_sendcmd(struct supernet_info *myinfo,struct instantdex_offer *o memcpy(msg->serialized,reqstr,slen); memcpy(&msg->serialized[slen],serialized,olen); //printf("extralen.%d datalen.%d slen.%d olen.%d\n",extralen,datalen,slen,olen); - extraser = (void *)swap->deck; - extralen = (int32_t)sizeof(swap->deck); if ( extralen > 0 ) { //if ( swap->otherchoosei < 0 )