summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn van Groningen2010-07-21 13:28:22 +0000
committerJohn van Groningen2010-07-21 13:28:22 +0000
commita2fd99064aa6057455c0a1f2a01154dc53c0b741 (patch)
tree9a8985d2c04490cb00d49daf2beb308a9c8a5149
parentworkaround 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.c7
1 files changed, 6 insertions, 1 deletions
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 <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];