diff options
Diffstat (limited to 'lib/alloc/bufalloc_noterm.c')
-rw-r--r-- | lib/alloc/bufalloc_noterm.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/alloc/bufalloc_noterm.c b/lib/alloc/bufalloc_noterm.c deleted file mode 100644 index e46d2a1..0000000 --- a/lib/alloc/bufalloc_noterm.c +++ /dev/null @@ -1,16 +0,0 @@ -#include <errno.h> -#include <stdckdint.h> -#include <stdlib.h> - -#include "alloc.h" - -void * -bufalloc_noterm(void *p, size_t n, size_t m) -{ - if (ckd_mul(&n, n, m)) { - errno = EOVERFLOW; - return nullptr; - } - - return realloc(p, n); -} |