summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;