aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoraxtloss <axtlos@getcryst.al>2024-09-26 15:15:16 +0200
committeraxtloss <axtlos@getcryst.al>2024-09-26 15:15:16 +0200
commit27bb394bc0bf2ca66d06931bf1e73a3e20d5741a (patch)
tree99daf5b1fb77c5ad4ee3cb87a7dc5007269e0db5 /src
parent8996ee7580ed85b42b6399f9f64e29092ce21c41 (diff)
downloadextlib-27bb394bc0bf2ca66d06931bf1e73a3e20d5741a.tar.gz
extlib-27bb394bc0bf2ca66d06931bf1e73a3e20d5741a.tar.bz2
Add author section to manpages
Diffstat (limited to '')
-rw-r--r--src/extlib.c1
-rw-r--r--src/extstring.c2
-rw-r--r--src/memset_s.c4
3 files changed, 3 insertions, 4 deletions
diff --git a/src/extlib.c b/src/extlib.c
index 108e3e5..d559b4d 100644
--- a/src/extlib.c
+++ b/src/extlib.c
@@ -30,7 +30,6 @@
#include <string.h>
#undef free
-#undef malloc
void
free_secure (void **__ptr, size_t ptrlen)
diff --git a/src/extstring.c b/src/extstring.c
index 044e368..2fea204 100644
--- a/src/extstring.c
+++ b/src/extstring.c
@@ -83,7 +83,7 @@ replace_str (char *s, char *old, char *replace)
}
}
- result = (char *) malloc_secure (i + cnt * (new_size - old_size) + 1);
+ result = (char *) malloc (i + cnt * (new_size - old_size) + 1);
i = 0;
while (*s)
diff --git a/src/memset_s.c b/src/memset_s.c
index 74c0025..d2e96e4 100644
--- a/src/memset_s.c
+++ b/src/memset_s.c
@@ -13,8 +13,8 @@ memset_s (void *s, rsize_t smax, int c, rsize_t n)
errno_t ret = EINVAL;
rsize_t limit = n < smax ? n : smax;
- if (!s)
- throw_constraint_handler_s ("memset_s: s = NULL", ret);
+ if (s == NULL)
+ throw_constraint_handler_s ("memset_s: s == NULL", ret);
else if (n > RSIZE_MAX)
throw_constraint_handler_s ("memset_s: n > RSIZE_MAX", ret);
else if (smax > RSIZE_MAX)