* call.c (print_z_candidates): Fix off by one error.
authorSylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
Thu, 24 Apr 2003 17:34:49 +0000 (17:34 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 24 Apr 2003 17:34:49 +0000 (17:34 +0000)
From-SVN: r66043

gcc/cp/ChangeLog
gcc/cp/call.c

index 403a642..f246bee 100644 (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
index ed97bcb..947151e 100644 (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