Switch from ARG_MAX to getting value from sysconf, glibc no longer defines the latter. This was reported from Peter Alfredsen Matthew Wesley, among other people.

darcs-hash:20090201132329-ac50b-5b9d54731c2ea2da3868fd492e68628b7684bb76.gz
This commit is contained in:
axel 2009-02-01 23:23:29 +10:00
parent dad549afd1
commit 36c3bd4e8d

2
exec.c
View file

@ -583,7 +583,7 @@ static void launch_process( process_t *p )
if( arg_max > 0 )
{
sb_format_size( &sz2, ARG_MAX );
sb_format_size( &sz2, arg_max );
debug( 0,
L"The total size of the argument and environment lists (%ls) exceeds the operating system limit of %ls.",