diff --git a/crypto777/bitcoind_RPC.c b/crypto777/bitcoind_RPC.c index d2e5f7b7f..2708f8b96 100755 --- a/crypto777/bitcoind_RPC.c +++ b/crypto777/bitcoind_RPC.c @@ -19,7 +19,7 @@ #include "OS_portable.h" #define LIQUIDITY_PROVIDER 1 -#define malloc(n) LP_alloc(n) +/*#define malloc(n) LP_alloc(n) #define realloc(ptr,n) LP_realloc(ptr,n) #define calloc(a,b) LP_alloc((uint64_t)(a) * (b)) #define free(ptr) LP_free(ptr) @@ -28,7 +28,7 @@ void *LP_realloc(void *ptr,uint64_t len); void *LP_alloc(uint64_t len); void LP_free(void *ptr); -char *LP_clonestr(char *str); +char *LP_clonestr(char *str);*/ #if LIQUIDITY_PROVIDER @@ -328,9 +328,9 @@ static size_t WriteMemoryCallback(void *ptr,size_t size,size_t nmemb,void *data) size_t needed,realsize = (size * nmemb); struct MemoryStruct *mem = (struct MemoryStruct *)data; needed = mem->size + realsize + 1; - if ( ptr == 0 && needed < 512 ) + if ( ptr == 0 && needed < 1024 ) { - mem->allocsize = 512; + mem->allocsize = 1024; mem->memory = malloc(mem->allocsize); } if ( mem->allocsize < needed ) diff --git a/iguana/exchanges/mm.c b/iguana/exchanges/mm.c index d8ce0ed0d..2fb69cf65 100644 --- a/iguana/exchanges/mm.c +++ b/iguana/exchanges/mm.c @@ -27,10 +27,6 @@ void PNACL_message(char *arg,...) } #define FROM_MARKETMAKER -#ifndef CJSON_GARBAGECOLLECTION -#define CJSON_GARBAGECOLLECTION -#endif - #include #include #ifndef NATIVE_WINDOWS @@ -39,7 +35,7 @@ void PNACL_message(char *arg,...) #include "../../crypto777/OS_portable.h" #endif // !_WIN_32 -#define malloc(n) LP_alloc(n) +/*#define malloc(n) LP_alloc(n) #define realloc(ptr,n) LP_realloc(ptr,n) #define calloc(a,b) LP_alloc((uint64_t)(a) * (b)) #define free(ptr) LP_free(ptr) @@ -48,7 +44,7 @@ void PNACL_message(char *arg,...) void *LP_realloc(void *ptr,uint64_t len); void *LP_alloc(uint64_t len); void LP_free(void *ptr); -char *LP_clonestr(char *str); +char *LP_clonestr(char *str);*/ #define MAX(a,b) ((a) > (b) ? (a) : (b)) char *stats_JSON(void *ctx,char *myipaddr,int32_t pubsock,cJSON *argjson,char *remoteaddr,uint16_t port);