aboutsummaryrefslogtreecommitdiff
path: root/libbb
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-08-16 05:39:07 +0000
committerMike Frysinger <vapier@gentoo.org>2005-08-16 05:39:07 +0000
commit6ebbc7414e6699c6ee3edb9dff5c8adda81590ed (patch)
tree36a6b7ba8423c0e3d88aed9bf4d493e1d584b009 /libbb
parent1eef0c4571d6319e67005944b7c20307fb8f5b15 (diff)
downloadbusybox-6ebbc7414e6699c6ee3edb9dff5c8adda81590ed.tar.gz
the () around isspace actually matters
Diffstat (limited to 'libbb')
-rw-r--r--libbb/xgetlarg.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libbb/xgetlarg.c b/libbb/xgetlarg.c
index 0460aad57..f24492bee 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();
}