]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* tree.c (get_file_function_name_long): Fix size of alloca() area.
authorRichard Sandiford <rsandifo@redhat.com>
Fri, 8 Aug 2003 15:17:02 +0000 (15:17 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 8 Aug 2003 15:17:02 +0000 (15:17 +0000)
From-SVN: r70248

gcc/ChangeLog
gcc/tree.c

index 5bc85a0be42035d74a3bab9b0323fcdc3f9228e4..ad8229a0165454175ed668a5d3da780bbbfb403a 100644 (file)
@@ -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
index 7ac0402dd01fe83af5314e03b33574cfee91e132..4bbb9079376ab9120180544f9a159b0acfafe2ff 100644 (file)
@@ -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);