strtonum: Do not abort on EINVAL from strtoi() With musl libc strtoimax(".", ...) returns EINVAL. Closes: !28 Signed-off-by: Guillem Jover <guillem@hadrons.org>
diff --git a/src/strtonum.c b/src/strtonum.c
index 8d6faa1..f85f741 100644
--- a/src/strtonum.c
+++ b/src/strtonum.c
@@ -58,6 +58,7 @@ strtonum(const char *nptr, long long minval, long long maxval,
return rv;
case ECANCELED:
case ENOTSUP:
+ case EINVAL:
goto out;
case ERANGE:
if (*eptr)