diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-08 12:49:22 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-08 12:49:22 +0000 |
commit | 1385899416a4396385ad421ae1f532be7103738a (patch) | |
tree | fc4d14a910593d1235318bb36abe5e9f72d2039e /findutils/xargs.c | |
parent | 5625415085e68ac5e150f54e685417c866620d76 (diff) |
attempt to regularize atoi mess.
Diffstat (limited to 'findutils/xargs.c')
-rw-r--r-- | findutils/xargs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/findutils/xargs.c b/findutils/xargs.c index 81997b6f6..e7cc7c379 100644 --- a/findutils/xargs.c +++ b/findutils/xargs.c @@ -426,7 +426,7 @@ int xargs_main(int argc, char **argv) orig_arg_max -= 2048; /* POSIX.2 requires subtracting 2048 */ if (opt & OPT_UPTO_SIZE) { - n_max_chars = bb_xgetularg10_bnd(max_chars, 1, orig_arg_max); + n_max_chars = xatoul_range(max_chars, 1, orig_arg_max); for (i = 0; i < argc; i++) { n_chars += strlen(*argv) + 1; } @@ -446,7 +446,7 @@ int xargs_main(int argc, char **argv) max_chars = xmalloc(n_max_chars); if (opt & OPT_UPTO_NUMBER) { - n_max_arg = bb_xgetularg10_bnd(max_args, 1, INT_MAX); + n_max_arg = xatoul_range(max_args, 1, INT_MAX); } else { n_max_arg = n_max_chars; } |