summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-06-13 01:44:27 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2010-06-13 01:44:27 (GMT)
commit1613de85d9203fa8628569e8e722899b184b24d8 (patch)
tree1f4f060f3ce6d1c700a5554fb823c4db1b5dba56
parentd5fa1a0f49c4872f614a4674922f4362b114fece (diff)
downloadbusybox-1613de85d9203fa8628569e8e722899b184b24d8.tar.gz
busybox-1613de85d9203fa8628569e8e722899b184b24d8.tar.bz2
xargs: make -s NUM accept practically unlimited range
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--findutils/xargs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/findutils/xargs.c b/findutils/xargs.c
index 25a7853..9ee5833 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;
}