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-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9804b5b82776063078baea67b20c0fa208516a0d;p=platform%2Fupstream%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 403a642..f246bee 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 ed97bcb..947151e 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