From a2fd99064aa6057455c0a1f2a01154dc53c0b741 Mon Sep 17 00:00:00 2001 From: John van Groningen Date: Wed, 21 Jul 2010 13:28:22 +0000 Subject: Make path buffers very large because otherwise on linux buffer overflows are reported even if only a small part part of the buffer is actually used. --- scon.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scon.c b/scon.c index f0a24dd..53c1e10 100644 --- a/scon.c +++ b/scon.c @@ -43,7 +43,12 @@ long min_write_heap_size; -#define MY_PATH_MAX 1025 +#ifndef SOLARIS +# include +# define MY_PATH_MAX PATH_MAX +#else +# define MY_PATH_MAX 1025 +#endif char appl_path[MY_PATH_MAX]; char home_path[MY_PATH_MAX]; -- cgit v1.2.3