summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-08 15:17:02 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-08-08 15:17:02 +0000
commitbe7bce5ff6459e383a074b41b92ef0fc6bab8c7b (patch)
tree06403d6268c24feceb0f4bd78b0ca1b75454fd0f
parent66a93a3924fcc325406695a8c643520c08b39d79 (diff)
downloadppe42-gcc-be7bce5ff6459e383a074b41b92ef0fc6bab8c7b.tar.gz
ppe42-gcc-be7bce5ff6459e383a074b41b92ef0fc6bab8c7b.zip
* tree.c (get_file_function_name_long): Fix size of alloca() area.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@70248 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/tree.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5bc85a0be42..ad8229a0165 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2003-08-08 Richard Sandiford <rsandifo@redhat.com>
+
+ * tree.c (get_file_function_name_long): Fix size of alloca() area.
+
2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
* configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
diff --git a/gcc/tree.c b/gcc/tree.c
index 7ac0402dd01..4bbb9079376 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -4517,7 +4517,7 @@ get_file_function_name_long (const char *type)
file = input_filename;
len = strlen (file);
- q = alloca (9 * 2 + len);
+ q = alloca (9 * 2 + len + 1);
memcpy (q, file, len + 1);
clean_symbol_name (q);
OpenPOWER on IntegriCloud