From d37d23db683193e004db0b8cc4d8d3abf46ce656 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 30 Jun 2016 17:10:44 -0300 Subject: [PATCH] test --- basilisk/basilisk_MSG.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basilisk/basilisk_MSG.c b/basilisk/basilisk_MSG.c index 8eafcfdee..7a24a7a5e 100755 --- a/basilisk/basilisk_MSG.c +++ b/basilisk/basilisk_MSG.c @@ -70,7 +70,7 @@ int32_t basilisk_ping_genMSG(struct supernet_info *myinfo,uint8_t *data,int32_t data[datalen++] = 1; data[datalen++] = msg->keylen; memcpy(&data[datalen],msg->key,msg->keylen), datalen += msg->keylen; - datalen += iguana_rwnum(1,data,sizeof(msg->datalen),&msg->datalen); + datalen += iguana_rwnum(1,&data[datalen],sizeof(msg->datalen),&msg->datalen); if ( maxlen > datalen+msg->datalen ) { printf("SEND keylen.%d msglen.%d\n",msg->keylen,msg->datalen); @@ -86,7 +86,7 @@ int32_t basilisk_ping_genMSG(struct supernet_info *myinfo,uint8_t *data,int32_t for (i=0; i