* 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 403a64270177676a21b54880f3111603f4e0d3ac..f246bee225f8fba45d1f68293bc6f2dee64a19bc 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 ed97bcb95ec81ce70c923ab13e09042fdb0109d3..947151eea41c30771e0563cfca569007b0db6058 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