mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 23:17:06 +08:00
* call.c (print_z_candidates): Fix off by one error.
From-SVN: r66043
This commit is contained in:
parent
0c79f08ba8
commit
9804b5b827
@ -1,3 +1,7 @@
|
||||
2003-04-24 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
|
||||
|
||||
* call.c (print_z_candidates): Fix off by one error.
|
||||
|
||||
2003-04-24 Nathan Sidwell <nathan@codesourcery.com>
|
||||
|
||||
PR c++/10337
|
||||
|
@ -2513,7 +2513,7 @@ print_z_candidates (struct z_candidate *candidates)
|
||||
size_t len = gcc_gettext_width (str) + 1;
|
||||
char *spaces = alloca (len);
|
||||
memset (spaces, ' ', len-1);
|
||||
spaces[len] = '\0';
|
||||
spaces[len - 1] = '\0';
|
||||
|
||||
candidates = candidates->next;
|
||||
do
|
||||
|
Loading…
Reference in New Issue
Block a user