summaryrefslogtreecommitdiff
path: root/libiberty/testsuite
diff options
context:
space:
mode:
authordanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-05 16:38:22 +0000
committerdanglin <danglin@138bc75d-0d04-0410-961f-82ee72b054a4>2003-06-05 16:38:22 +0000
commitb4c6b6f4af96a73a4ee914c69acea75989308b18 (patch)
treecc640d953214b4f7a541a52ed4920eaf0e3fc069 /libiberty/testsuite
parentef3bb540da88410653be1d84bbb57f3fd112f146 (diff)
downloadgcc-b4c6b6f4af96a73a4ee914c69acea75989308b18.tar.gz
PR other/10810
* test-demangle.c (getline): Fix fence-post error. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67499 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/testsuite')
-rw-r--r--libiberty/testsuite/test-demangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libiberty/testsuite/test-demangle.c b/libiberty/testsuite/test-demangle.c
index 82f263e88af..6e5d0b4b973 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);