...
 
Commits (2)
......@@ -92,7 +92,7 @@ AC_TYPE_UINT8_T
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_FUNC_STAT
AC_CHECK_FUNCS([memset strcasecmp strdup strerror strrchr strtoul strtoull timegm])
AC_CHECK_FUNCS([memset strcasecmp strdup strerror strrchr strtoul strtol strtoll timegm])
# Allow GNU Argp as a standalone lib, as an alternative to glibc
AC_SEARCH_LIBS([argp_parse], [argp], [],
......
......@@ -287,7 +287,7 @@ static int parse_s32e(const char *nptr, char **endptr, int base,
assert(res);
errno = 0;
l = strtol_l(nptr, endptr, base); /* strotl or strotll */
l = strtol_l(nptr, endptr, base); /* strtol or strtoll */
if (errno || nptr == *endptr)
return errno ? errno : EINVAL;
if (l > UINT32_MAX || l < INT32_MIN)
......