diff --git a/crypto777/iguana_OS.c b/crypto777/iguana_OS.c index f88bfa286..ba0888b55 100755 --- a/crypto777/iguana_OS.c +++ b/crypto777/iguana_OS.c @@ -117,7 +117,7 @@ void *mycalloc(uint8_t type,int32_t n,long itemsize) //portable_mutex_unlock(&MEMmutex); return((void *)((long)item + sizeof(*item))); #else - return(calloc(1,n*itemsize + 64)); + return(calloc(n,itemsize)); #endif } diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index d358dcc34..f23cb773c 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -25,7 +25,7 @@ struct iguana_bundlereq *iguana_bundlereq(struct iguana_info *coin,struct iguana struct iguana_bundlereq *req; int32_t allocsize; if ( data == 0 ) datalen = 0; - allocsize = (uint32_t)sizeof(*req) + datalen; + allocsize = (uint32_t)sizeof(*req) + datalen + 64; req = mycalloc(type,1,allocsize); req->allocsize = allocsize; req->datalen = datalen;