From 2022eaf88dea59625460751b8c1ae51b513df6c6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 24 Jan 2018 22:36:22 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_privkey.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iguana/exchanges/LP_privkey.c b/iguana/exchanges/LP_privkey.c index 6e9e3fe53..6d48f98a5 100644 --- a/iguana/exchanges/LP_privkey.c +++ b/iguana/exchanges/LP_privkey.c @@ -440,6 +440,8 @@ int32_t JPG_encrypt(uint16_t ind,uint8_t encoded[JPG_ENCRYPTED_MAXSIZE],uint8_t msglen += crypto_box_NONCEBYTES; msg = encoded; msglen += len; + encoded[0] = msglen & 0xff; + encoded[1] = (msglen >> 8) & 0xff; int32_t i; for (i=0; i