Correctly display the size of the argument buffer we really allocated.

This commit is contained in:
James Youngman
2005-12-04 02:53:08 +00:00
parent a88c31a7a1
commit 1cba62abda

View File

@@ -664,7 +664,18 @@ main (int argc, char **argv)
(posix_arg_size_max - size_of_environment));
fprintf(stderr,
_("Size of command buffer we are actually using: %ld\n"),
arg_size);
bc_ctl.arg_max);
if (isatty(STDIN_FILENO))
{
fprintf(stderr,
"\n"
"Execution of xargs will continue now, and it will "
"try to read its input and run commands; if this is "
"not what you wanted to happen, please type the "
"end-of-file keystroke.\n");
}
}
linebuf = (char *) xmalloc (bc_ctl.arg_max + 1);