aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 7ac0402..4bbb907 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);