aboutsummaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-06-13 03:44:27 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-06-13 03:44:27 +0200
commit1613de85d9203fa8628569e8e722899b184b24d8 (patch)
tree1f4f060f3ce6d1c700a5554fb823c4db1b5dba56 /findutils
parentd5fa1a0f49c4872f614a4674922f4362b114fece (diff)
downloadbusybox-1613de85d9203fa8628569e8e722899b184b24d8.tar.gz
xargs: make -s NUM accept practically unlimited range
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'findutils')
-rw-r--r--findutils/xargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/findutils/xargs.c b/findutils/xargs.c
index 25a785336..9ee5833e5 100644
--- a/findutils/xargs.c
+++ b/findutils/xargs.c
@@ -454,7 +454,7 @@ int xargs_main(int argc, char **argv)
if (opt & OPT_UPTO_SIZE) {
int i;
size_t n_chars = 0;
- n_max_chars = xatoul_range(max_chars, 1, n_max_chars);
+ n_max_chars = xatoul_range(max_chars, 1, INT_MAX);
for (i = 0; argv[i]; i++) {
n_chars += strlen(argv[i]) + 1;
}