jl777 7 years ago
parent
commit
d7146093ac
  1. 4
      iguana/exchanges/LP_privkey.c

4
iguana/exchanges/LP_privkey.c

@ -599,8 +599,8 @@ char *LP_jpg(char *srcfile,char *destfile,int32_t power2,char *passphrase,char *
{ {
if ( capacity > 0 ) if ( capacity > 0 )
{ {
decodedstr = calloc(1,len*2+1); decodedstr = calloc(1,required/8+1);
init_hexbytes_noT(decodedstr,decoded,len); init_hexbytes_noT(decodedstr,decoded,required/8+1);
jaddstr(retjson,"decoded",decodedstr); jaddstr(retjson,"decoded",decodedstr);
free(decodedstr); free(decodedstr);
} }

Loading…
Cancel
Save