diff options
Diffstat (limited to 'src/inttypes/strtoumax.c')
| -rw-r--r-- | src/inttypes/strtoumax.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/inttypes/strtoumax.c b/src/inttypes/strtoumax.c index 2889f109..77ae2f10 100644 --- a/src/inttypes/strtoumax.c +++ b/src/inttypes/strtoumax.c @@ -2,11 +2,13 @@ #include <ctype.h> #include <errno.h> #include <inttypes.h> +#include <string.h> #include "_safety.h" uintmax_t strtoumax(const char *restrict nptr, char ** restrict endptr, int base) { SIGNAL_SAFE(0); + ASSERT_NOOVERLAP(nptr, strlen(nptr), endptr, sizeof(*endptr)); uintmax_t ret = 0; uintmax_t max = UINTMAX_MAX; |
