From 5bd6c409b1e074632f9481359d35fcd4191c8f24 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 5 Mar 2017 15:59:01 +0200 Subject: [PATCH] Test --- basilisk/basilisk_swap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/basilisk/basilisk_swap.c b/basilisk/basilisk_swap.c index a2c47b67d..5843af951 100755 --- a/basilisk/basilisk_swap.c +++ b/basilisk/basilisk_swap.c @@ -1818,9 +1818,9 @@ void basilisk_psockinit(struct supernet_info *myinfo,struct basilisk_swap *swap, { if ( nn_connect(pushsock,pushaddr) >= 0 && nn_connect(subsock,subaddr) >= 0 ) swap->connected = 1; - sprintf(databuf,"{\"push\":\"%s\",\"sub\":\"%s\"}",pushaddr,subaddr); - datalen = (int32_t)strlen(databuf) + 1; - decode_hex(data,datalen,databuf); + sprintf((char *)data,"{\"push\":\"%s\",\"sub\":\"%s\"}",pushaddr,subaddr); + datalen = (int32_t)strlen((char *)data) + 1; + printf("datalen.%d (%s)\n",datalen,(char *)data); init_hexbytes_noT(databuf,data,datalen); printf("%s -> %s\n",keystr,databuf); if ( (retstr= _dex_kvupdate(myinfo,"KV",keystr,databuf,1)) != 0 )