aboutsummaryrefslogtreecommitdiff
path: root/src/extlib.h
diff options
context:
space:
mode:
authoraxtloss <axtlos@getcryst.al>2024-07-11 00:31:04 +0200
committeraxtloss <axtlos@getcryst.al>2024-07-11 00:31:04 +0200
commite8f6d6c71b45062cc7ec4dcadcecba44af39a15d (patch)
treea6c877d325af682254a561d13da3b60b4edb95e6 /src/extlib.h
parentd967cb6465d0856185bbf20267805ef38b6ff931 (diff)
downloadextlib-e8f6d6c71b45062cc7ec4dcadcecba44af39a15d.tar.gz
extlib-e8f6d6c71b45062cc7ec4dcadcecba44af39a15d.tar.bz2
depcreate malloc_secure for calloc
Diffstat (limited to 'src/extlib.h')
-rw-r--r--src/extlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extlib.h b/src/extlib.h
index a292707..87948f5 100644
--- a/src/extlib.h
+++ b/src/extlib.h
@@ -23,11 +23,11 @@
#ifdef USE_SECURE_MEM
#define free(x) error - use free_secure
-#define malloc(x) error - use malloc_secure
/// Automatically zero out a pointer before freeing it
void free_secure (void **__ptr, size_t ptrlen);
+/// DEPRECATED: use calloc
/// Automatically initialise the allocated memory with zeros
void *malloc_secure (size_t len);
#endif