From: Richard Sandiford Date: Fri, 8 Aug 2003 15:17:02 +0000 (+0000) Subject: * tree.c (get_file_function_name_long): Fix size of alloca() area. X-Git-Tag: releases/gcc-3.4.0~4337 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=679c4092161b05666c0b9c22eaad90b0c4bb9b09;p=thirdparty%2Fgcc.git * tree.c (get_file_function_name_long): Fix size of alloca() area. From-SVN: r70248 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5bc85a0be420..ad8229a01654 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-08-08 Richard Sandiford + + * tree.c (get_file_function_name_long): Fix size of alloca() area. + 2003-08-08 Kelley Cook * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target diff --git a/gcc/tree.c b/gcc/tree.c index 7ac0402dd01f..4bbb9079376a 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);