projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1eef0c4
)
the () around isspace actually matters
author
Mike Frysinger
<vapier@gentoo.org>
Tue, 16 Aug 2005 05:39:07 +0000
(
05:39
-0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Tue, 16 Aug 2005 05:39:07 +0000
(
05:39
-0000)
libbb/xgetlarg.c
patch
|
blob
|
history
diff --git
a/libbb/xgetlarg.c
b/libbb/xgetlarg.c
index 0460aad57516875d7dea337392c14cbeb01614ae..f24492beef15267675911ac3c76732f133598104 100644
(file)
--- 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();
}