From 6ebbc7414e6699c6ee3edb9dff5c8adda81590ed Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 16 Aug 2005 05:39:07 +0000 Subject: the () around isspace actually matters --- libbb/xgetlarg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'libbb') diff --git a/libbb/xgetlarg.c b/libbb/xgetlarg.c index 0460aad..f24492b 100644 --- a/libbb/xgetlarg.c +++ b/libbb/xgetlarg.c @@ -21,8 +21,10 @@ extern long bb_xgetlarg(const char *arg, int base, long lower, long upper) assert(arg!=NULL); - /* Don't allow leading whitespace. */ - if (isspace(*arg)) { /* Use an actual function call for minimal size. */ + /* Don't allow leading whitespace. + * Wrap isspace in () to make sure we call the + * function rather than the macro. */ + if ((isspace)(*arg)) { bb_show_usage(); } -- cgit v1.1