xargs: make -s NUM accept practically unlimited range

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-06-13 03:44:27 +02:00
parent d5fa1a0f49
commit 1613de85d9

View File

@ -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;
}