* call.c (print_z_candidates): Fix off by one error.

From-SVN: r66043
This commit is contained in:
Sylvain Pion 2003-04-24 17:34:49 +00:00 committed by Richard Sandiford
parent 0c79f08ba8
commit 9804b5b827
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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