diff options
| author | @syxhe <https://t.me/syxhe> | 2025-01-11 16:57:57 -0600 |
|---|---|---|
| committer | @syxhe <https://t.me/syxhe> | 2025-01-11 16:57:57 -0600 |
| commit | d8e03b1a1d929f6afeac72d475183d0218656b48 (patch) | |
| tree | 48cc8444f4489ec7e32b8e4a6fc372b051b9cea1 /src/shared.c | |
| parent | 2db78bbbfa11f334c09b15c3918f3cda172b637c (diff) | |
First pass at genpassword
Diffstat (limited to 'src/shared.c')
| -rw-r--r-- | src/shared.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { | |||
| 10 | void *mem = calloc(nmemb, size); | 10 | void *mem = calloc(nmemb, size); |
| 11 | 11 | ||
| 12 | if(mem == NULL) { | 12 | if(mem == NULL) { |
| 13 | #if defined ___VXGG___XCALLOC_EXIT_ON_ERROR___ && ___VXGG___XCALLOC_EXIT_ON_ERROR___ > 0 | 13 | #if defined ___VXGG___XALLOC_EXIT_ON_ERROR___ && ___VXGG___XALLOC_EXIT_ON_ERROR___ > 0 |
| 14 | error(1, errno, "<xcalloc> Could not allocate memory"); | 14 | error(1, errno, "<xcalloc> Could not allocate memory"); |
| 15 | #endif | 15 | #endif |
| 16 | 16 | ||
| @@ -24,7 +24,7 @@ void* xcalloc(size_t nmemb, size_t size) { | |||
| 24 | void* xreallocarray(void *ptr, size_t nmemb, size_t size) { | 24 | void* xreallocarray(void *ptr, size_t nmemb, size_t size) { |
| 25 | void *mem = reallocarray(ptr, nmemb, size); | 25 | void *mem = reallocarray(ptr, nmemb, size); |
| 26 | if(mem == NULL) { | 26 | if(mem == NULL) { |
| 27 | #if defined ___VXGG___XCALLOC_EXIT_ON_ERROR___ && ___VXGG___XCALLOC_EXIT_ON_ERROR___ > 0 | 27 | #if defined ___VXGG___XALLOC_EXIT_ON_ERROR___ && ___VXGG___XALLOC_EXIT_ON_ERROR___ > 0 |
| 28 | error(1, errno, "<xreallocarray> Could not allocate memory"); | 28 | error(1, errno, "<xreallocarray> Could not allocate memory"); |
| 29 | 29 | ||
| 30 | #endif | 30 | #endif |
