diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2004-08-19 14:32:31 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2004-08-19 15:32:31 +0100 |
commit | 97d68565c6b8a46240a3839ad674e0fb4516f9f4 (patch) | |
tree | de89e83905f812ed3de00b9347385151710f6ffa /gcc/java/class.c | |
parent | 74ae207d9143aad116d05ee0740772055fbc9304 (diff) | |
download | gcc-97d68565c6b8a46240a3839ad674e0fb4516f9f4.zip gcc-97d68565c6b8a46240a3839ad674e0fb4516f9f4.tar.gz gcc-97d68565c6b8a46240a3839ad674e0fb4516f9f4.tar.bz2 |
class.c (make_local_function_alias): Allocate extra space for 'L' in name buffer.
2004-08-19 Bryce McKinlay <mckinlay@redhat.com>
* class.c (make_local_function_alias): Allocate extra space for 'L'
in name buffer. Reported by Thomas Neumann.
From-SVN: r86251
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r-- | gcc/java/class.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c index d24e033..4781a61 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -1210,7 +1210,7 @@ make_local_function_alias (tree method) #ifdef ASM_OUTPUT_DEF tree alias; const char *method_name = IDENTIFIER_POINTER (DECL_ASSEMBLER_NAME (method)); - char *name = alloca (strlen (method_name) + 1); + char *name = alloca (strlen (method_name) + 2); char *buf = alloca (strlen (method_name) + 128); /* Prefix method_name with 'L' for the alias label. */ |