diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-29 18:03:54 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-01-29 18:03:54 +0000 |
commit | e935602ff5d5a45be56585b8bad44194c3e837a3 (patch) | |
tree | d132adcb0f5e165f96cc85ac0baef036e38812b0 /miscutils/taskset.c | |
parent | 86811803e304b63b71d3ddac91ad4e1cd741344f (diff) | |
download | busybox-w32-e935602ff5d5a45be56585b8bad44194c3e837a3.tar.gz busybox-w32-e935602ff5d5a45be56585b8bad44194c3e837a3.tar.bz2 busybox-w32-e935602ff5d5a45be56585b8bad44194c3e837a3.zip |
taskset: fix incorrect rage spec and allow 0xXXX input
ping: shave off 60 bytes
Diffstat (limited to 'miscutils/taskset.c')
-rw-r--r-- | miscutils/taskset.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/taskset.c b/miscutils/taskset.c index a4d41ac9c..28be31a31 100644 --- a/miscutils/taskset.c +++ b/miscutils/taskset.c | |||
@@ -62,7 +62,7 @@ int taskset_main(int argc, char** argv) | |||
62 | aff = *++argv; /* <aff> <cmd...> */ | 62 | aff = *++argv; /* <aff> <cmd...> */ |
63 | if (aff) { | 63 | if (aff) { |
64 | unsigned i = 0; | 64 | unsigned i = 0; |
65 | unsigned long l = xstrtol_range(aff, 16, 1, ULONG_MAX); | 65 | unsigned long l = xstrtol_range(aff, 0, 1, LONG_MAX); |
66 | 66 | ||
67 | CPU_ZERO(&new_mask); | 67 | CPU_ZERO(&new_mask); |
68 | while (i < CPU_SETSIZE && l >= (1<<i)) { | 68 | while (i < CPU_SETSIZE && l >= (1<<i)) { |