jl777 7 years ago
parent
commit
ce321e8870
  1. 2
      crypto777/jpeg/unix/jmemname.c
  2. 11
      iguana/exchanges/LP_privkey.c

2
crypto777/jpeg/unix/jmemname.c

@ -70,7 +70,7 @@ extern void free JPP((void *ptr));
*/
#ifndef TEMP_DIRECTORY /* can override from jconfig.h or Makefile */
#define TEMP_DIRECTORY "/usr/tmp/" /* recommended setting for Unix */
#define TEMP_DIRECTORY "/tmp/" /* recommended setting for Unix */
#endif
static int next_file_num; /* to distinguish among several temp files */

11
iguana/exchanges/LP_privkey.c

@ -597,10 +597,13 @@ char *LP_jpg(char *srcfile,char *destfile,int32_t power2,char *passphrase,char *
}
if ( decoded != 0 )
{
decodedstr = calloc(1,len*2+1);
init_hexbytes_noT(decodedstr,decoded,len);
jaddstr(retjson,"decoded",decodedstr);
free(decodedstr);
if ( capacity > 0 )
{
decodedstr = calloc(1,len*2+1);
init_hexbytes_noT(decodedstr,decoded,len);
jaddstr(retjson,"decoded",decodedstr);
free(decodedstr);
}
free(decoded);
}
if ( data != 0 )

Loading…
Cancel
Save