Details
A few details in the makefile and in the manual. (In particular, it updates the dependency lists in the makefile.)
This commit is contained in:
3
ltests.c
3
ltests.c
@@ -156,7 +156,8 @@ void *debug_realloc (void *ud, void *b, size_t oldsize, size_t size) {
|
||||
size_t realsize = sizeof(Header) + size + MARKSIZE;
|
||||
if (realsize < size) return NULL; /* arithmetic overflow! */
|
||||
newblock = cast(Header *, malloc(realsize)); /* alloc a new block */
|
||||
if (newblock == NULL) return NULL; /* really out of memory? */
|
||||
if (newblock == NULL)
|
||||
return NULL; /* really out of memory? */
|
||||
if (block) {
|
||||
memcpy(newblock + 1, block + 1, commonsize); /* copy old contents */
|
||||
freeblock(mc, block); /* erase (and check) old copy */
|
||||
|
||||
Reference in New Issue
Block a user