From 6ac1a9624f18f7d8e3c41694b38350ce53112694 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Thu, 5 Jun 2003 17:03:32 +0000 Subject: merge from gcc --- libiberty/testsuite/test-demangle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libiberty/testsuite') diff --git a/libiberty/testsuite/test-demangle.c b/libiberty/testsuite/test-demangle.c index 82f263e88a..6e5d0b4b97 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); -- cgit v1.2.1