numfmt: fix strtol() return code handling
authorAssaf Gordon <assafgordon@gmail.com>
Tue, 12 Feb 2013 20:28:22 +0000 (15:28 -0500)
committerPádraig Brady <P@draigBrady.com>
Wed, 13 Feb 2013 22:20:10 +0000 (22:20 +0000)
commitfff11aca4faaee33a032cb11d7453c6e938b71b7
treeec656749dd7ba19050088e15687f61b4c6e22b05
parent54cdb0e88bea464f0fda8649885bf21dcf56df4e
numfmt: fix strtol() return code handling

src/numfmt.c (parse_format_string): On some systems, strtol() returns
EINVAL if no conversion was performed.  So only handle ERANGE here,
and handle other format errors directly.
src/numfmt.c