Merge pull request #129 from devnexen/libdislocator_typo

libdislocator, typo fix.
This commit is contained in:
van Hauser
2019-12-03 10:19:50 +01:00
committed by GitHub

View File

@ -321,7 +321,7 @@ void* realloc(void* ptr, size_t len) {
if (ret && ptr) {
if (PTR_C(ptr) != ALLOC_CANARY) FATAL("bad allocator canary on realloc()");
if (PTR_C(ptr) != alloc_canary) FATAL("bad allocator canary on realloc()");
memcpy(ret, ptr, MIN(len, PTR_L(ptr)));
free(ptr);