* 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
+2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ PR other/10810
+ * test-demangle.c (getline): Fix fence-post error.
+
2003-06-03 Nick Clifton <nickc@redhat.com>
* asprintf.c: Change comment to note that -1 is returned upon
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);