From 36c3bd4e8df6b1ef6f260f3e3a7f535177a4c2ac Mon Sep 17 00:00:00 2001 From: axel Date: Sun, 1 Feb 2009 23:23:29 +1000 Subject: [PATCH] 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 --- exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.c b/exec.c index dea568190..5534f7cb4 100644 --- a/exec.c +++ b/exec.c @@ -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.",