diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2006-03-14 19:53:03 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2006-03-14 19:53:03 +0000 |
commit | 7768950fe38f446c3f8b6ac6d3d7707990b0f50e (patch) | |
tree | 7ada91025d40abcd020e27a5b87c842cb2540fc2 | |
parent | 9e92c8d4866f5700c1b233ef7af8875a4a03f802 (diff) |
Notes
-rw-r--r-- | lib/libc/stdlib/strtonum.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdlib/strtonum.c b/lib/libc/stdlib/strtonum.c index 0bf29c37aaad..6dccd973606b 100644 --- a/lib/libc/stdlib/strtonum.c +++ b/lib/libc/stdlib/strtonum.c @@ -51,7 +51,7 @@ strtonum(const char *numstr, long long minval, long long maxval, error = INVALID; else { ll = strtoll(numstr, &ep, 10); - if (numstr == ep || *ep != '\0') + if (errno == EINVAL || numstr == ep || *ep != '\0') error = INVALID; else if ((ll == LLONG_MIN && errno == ERANGE) || ll < minval) error = TOOSMALL; |