From 833cb417608eb138d3a9b99dc995c5c1aeffd1cd Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Sun, 30 Mar 2025 23:13:35 -0500 Subject: Create encryption functions that actually work --- src/arena.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/arena.c') diff --git a/src/arena.c b/src/arena.c index 62dbbf8..de3523b 100644 --- a/src/arena.c +++ b/src/arena.c @@ -7,7 +7,7 @@ #include #include -#define VALLOC(nmemb, size) ((___VXGG___USE_XALLOC_FOR_ARENAS___ > 0) ? xcalloc((nmemb), (size)) : malloc((nmemb) * (size))) +#define VALLOC(nmemb, size) ((___VXGG___USE_XALLOC_FOR_ARENAS___ > 0) ? xmalloc((nmemb) * (size)) : malloc((nmemb) * (size))) typedef struct an { void *membase; @@ -150,7 +150,7 @@ simplearena * simplearena_init(size_t bytes) { return arena_init(bytes); } -void* simplearena_alloc(simplearena * const a, size_t bytes) { +void * simplearena_alloc(simplearena * const a, size_t bytes) { // The criteria to allocate new memory in arena_alloc is 'bytes > ((a->current)->allocated - (a->current)->used)', so if this // is true, just return NULL & set errno -- cgit v1.2.3