Commit 97d68565 by Bryce McKinlay Committed by Bryce McKinlay

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
parent 74ae207d
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.
2004-08-19 Nathan Sidwell <nathan@codesourcery.com>
* parse.h (JAVA_RADIX10_FLAG): Rename to ...
......
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment