mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
xargs: make -s NUM accept practically unlimited range
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
d5fa1a0f49
commit
1613de85d9
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user