diff options
Diffstat (limited to 'lib/strto.c')
-rw-r--r-- | lib/strto.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/strto.c b/lib/strto.c index 1ac2b09c725..606701566f3 100644 --- a/lib/strto.c +++ b/lib/strto.c @@ -34,6 +34,9 @@ static const char *_parse_integer_fixup_radix(const char *s, unsigned int *base) *base = 16; break; } + + if (!(var >= '0' && var <= '9')) + break; } while (var); } } |