[git commit master] test: "" is not a valid number. Closes bug 1915
Denys Vlasenko
vda.linux at googlemail.com
Wed Jun 2 23:47:04 UTC 2010
commit: http://git.busybox.net/busybox/commit/?id=3e47cfec90fbe358692b3b960f7fa2303e465c2f
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
coreutils/test.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/coreutils/test.c b/coreutils/test.c
index 5864c7f..a1d1645 100644
--- a/coreutils/test.c
+++ b/coreutils/test.c
@@ -393,7 +393,7 @@ static number_t getn(const char *s)
if (errno != 0)
syntax(s, "out of range");
- if (*(skip_whitespace(p)))
+ if (p == s || *(skip_whitespace(p)) != '\0')
syntax(s, "bad number");
return r;
--
1.6.3.3
More information about the busybox-cvs
mailing list