aboutsummaryrefslogtreecommitdiff
path: root/lib/args.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2007-02-16 21:08:22 -0500
committerRob Landley <rob@landley.net>2007-02-16 21:08:22 -0500
commitf5757161aff8caeec8e70b9709ccdce96e41dd14 (patch)
treeb2ecd70a091018aa2999d93d64875390688c8634 /lib/args.c
parentfb6c09e63653b619f6645617d66ba605077d1d42 (diff)
downloadtoybox-f5757161aff8caeec8e70b9709ccdce96e41dd14.tar.gz
Add atolx() which understands extensions for kilobytes and megabytes and such.
Diffstat (limited to 'lib/args.c')
-rw-r--r--lib/args.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/args.c b/lib/args.c
index 2c17951b..c9ade1e9 100644
--- a/lib/args.c
+++ b/lib/args.c
@@ -108,7 +108,7 @@ static void gotflag(void)
temp->arg = gof.arg;
temp->next = *list;
*list = temp;
- } else if (type == '#') *(gof.this->arg) = atol((char *)gof.arg);
+ } else if (type == '#') *(gof.this->arg) = atolx((char *)gof.arg);
else if (type == '@') {
}