summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/call.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 403a6427017..f246bee225f 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index ed97bcb95ec..947151eea41 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -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