From d8e03b1a1d929f6afeac72d475183d0218656b48 Mon Sep 17 00:00:00 2001 From: "@syxhe" Date: Sat, 11 Jan 2025 16:57:57 -0600 Subject: First pass at genpassword --- src/shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/shared.c') diff --git a/src/shared.c b/src/shared.c index 7be3c28..250b348 100644 --- a/src/shared.c +++ b/src/shared.c @@ -10,7 +10,7 @@ void* xcalloc(size_t nmemb, size_t size) { void *mem = calloc(nmemb, size); if(mem == NULL) { - #if defined ___VXGG___XCALLOC_EXIT_ON_ERROR___ && ___VXGG___XCALLOC_EXIT_ON_ERROR___ > 0 + #if defined ___VXGG___XALLOC_EXIT_ON_ERROR___ && ___VXGG___XALLOC_EXIT_ON_ERROR___ > 0 error(1, errno, " Could not allocate memory"); #endif @@ -24,7 +24,7 @@ void* xcalloc(size_t nmemb, size_t size) { void* xreallocarray(void *ptr, size_t nmemb, size_t size) { void *mem = reallocarray(ptr, nmemb, size); if(mem == NULL) { - #if defined ___VXGG___XCALLOC_EXIT_ON_ERROR___ && ___VXGG___XCALLOC_EXIT_ON_ERROR___ > 0 + #if defined ___VXGG___XALLOC_EXIT_ON_ERROR___ && ___VXGG___XALLOC_EXIT_ON_ERROR___ > 0 error(1, errno, " Could not allocate memory"); #endif -- cgit v1.2.3