jl777 8 years ago
parent
commit
dd36dc269e
  1. 2
      crypto777/iguana_OS.c
  2. 2
      iguana/iguana_recv.c

2
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
}

2
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;

Loading…
Cancel
Save