From: Sylvain Pion Date: Thu, 24 Apr 2003 17:34:49 +0000 (+0000) Subject: * call.c (print_z_candidates): Fix off by one error. X-Git-Tag: releases/gcc-3.4.0~7053 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9804b5b82776063078baea67b20c0fa208516a0d;p=thirdparty%2Fgcc.git * call.c (print_z_candidates): Fix off by one error. From-SVN: r66043 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 403a64270177..f246bee225f8 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2003-04-24 Sylvain Pion + + * call.c (print_z_candidates): Fix off by one error. + 2003-04-24 Nathan Sidwell PR c++/10337 diff --git a/gcc/cp/call.c b/gcc/cp/call.c index ed97bcb95ec8..947151eea41c 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