diff options
author | John van Groningen | 2010-07-21 13:28:22 +0000 |
---|---|---|
committer | John van Groningen | 2010-07-21 13:28:22 +0000 |
commit | a2fd99064aa6057455c0a1f2a01154dc53c0b741 (patch) | |
tree | 9a8985d2c04490cb00d49daf2beb308a9c8a5149 | |
parent | workaround new bug or feature of gas, (diff) |
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.
-rw-r--r-- | scon.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -43,7 +43,12 @@ long min_write_heap_size; -#define MY_PATH_MAX 1025 +#ifndef SOLARIS +# include <limits.h> +# 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]; |