sbase

suckless unix tools
git clone git://git.2f30.org/sbase
Log | Files | Refs | README | LICENSE

commit ab149deebeab74ff9d841e103ae5df8e4b6379d7
parent e5c1f0f372c0759b6f376e76c94f052c78f74bcb
Author: sin <sin@2f30.org>
Date:   Fri, 30 Jan 2015 13:59:16 +0000

Use errstr as filled by strtonum() because it is more informative

Diffstat:
Mlibutil/strtonum.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libutil/strtonum.c b/libutil/strtonum.c @@ -74,6 +74,6 @@ estrtonum(const char *numstr, long long minval, long long maxval) ll = strtonum(numstr, minval, maxval, &errstr); if (errstr) - eprintf("strtonum %s: invalid value\n", numstr); + eprintf("strtonum %s: %s\n", numstr, errstr); return ll; }