Commit 9804b5b8 by Sylvain Pion Committed by Richard Sandiford

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

From-SVN: r66043
parent 0c79f08b
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> 2003-04-24 Nathan Sidwell <nathan@codesourcery.com>
PR c++/10337 PR c++/10337
......
...@@ -2513,7 +2513,7 @@ print_z_candidates (struct z_candidate *candidates) ...@@ -2513,7 +2513,7 @@ print_z_candidates (struct z_candidate *candidates)
size_t len = gcc_gettext_width (str) + 1; size_t len = gcc_gettext_width (str) + 1;
char *spaces = alloca (len); char *spaces = alloca (len);
memset (spaces, ' ', len-1); memset (spaces, ' ', len-1);
spaces[len] = '\0'; spaces[len - 1] = '\0';
candidates = candidates->next; candidates = candidates->next;
do do
......
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