summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen North <ben@redfrontdoor.org>2009-01-20 18:26:27 +0100
committerMatthias Hopf <mhopf@suse.de>2009-01-20 18:26:27 +0100
commitb45149922ee23a71efa013d3ef36ca4f6c6494be (patch)
tree3ef33dc73f3ad659e3a65ded93969bc7421263c8
parent8d9922bdc53c5538dbfbba65f5a3e15afc8aea91 (diff)
Skip whitespace for virtual button '0'.
-rw-r--r--handle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/handle.c b/handle.c
index 5d457b4..d43da21 100644
--- a/handle.c
+++ b/handle.c
@@ -274,6 +274,8 @@ parse_number(const char *str, unsigned long *val)
if (*str == '0') {
str++;
+ while (isspace(*str))
+ str++;
fmt = "%lo";
if (*str == '\0') {
*val = 0;