From: DJ Delorie Date: Thu, 5 Jun 2003 17:03:32 +0000 (+0000) Subject: merge from gcc X-Git-Tag: ezannoni_pie-20030916-branchpoint~1376 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=54c60684a4f0518c8d1620d7dfc47a02be7153d0;p=external%2Fbinutils.git merge from gcc --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index af52033..baa15cd 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,8 @@ +2003-06-05 John David Anglin + + PR other/10810 + * test-demangle.c (getline): Fix fence-post error. + 2003-06-03 Nick Clifton * asprintf.c: Change comment to note that -1 is returned upon diff --git a/libiberty/testsuite/test-demangle.c b/libiberty/testsuite/test-demangle.c index 82f263e..6e5d0b4 100644 --- a/libiberty/testsuite/test-demangle.c +++ b/libiberty/testsuite/test-demangle.c @@ -65,7 +65,7 @@ getline(buf) line: copy this line into the buffer and return. */ while (c != EOF && c != '\n') { - if (count >= alloc) + if (count + 1 >= alloc) { alloc *= 2; data = xrealloc (data, alloc);