diff options
author | DJ Delorie <dj@redhat.com> | 2003-06-05 17:03:32 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2003-06-05 17:03:32 +0000 |
commit | 54c60684a4f0518c8d1620d7dfc47a02be7153d0 (patch) | |
tree | 49859fb12b2daab8a50a5d08296d515c3f767946 /libiberty/testsuite/test-demangle.c | |
parent | 36c3ae2457c89d404e9bb81de084da39064ce7cc (diff) | |
download | gdb-54c60684a4f0518c8d1620d7dfc47a02be7153d0.zip gdb-54c60684a4f0518c8d1620d7dfc47a02be7153d0.tar.gz gdb-54c60684a4f0518c8d1620d7dfc47a02be7153d0.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/testsuite/test-demangle.c')
-rw-r--r-- | libiberty/testsuite/test-demangle.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |