* tests/test-getndelim2.c: Correct an off-by-one assertion.
+2008-05-03 Jim Meyering <meyering@redhat.com>
+
+ avoid failed assertion with tight malloc
+ * tests/test-getndelim2.c: Correct an off-by-one assertion.
+
2008-05-03 Simon Josefsson <simon@josefsson.org>
* m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
result = getndelim2 (&line, &len, 0, GETNLINE_NO_LIMIT, 'g', 'f', f);
ASSERT (result == 501 * 14 - 1);
- ASSERT (501 * 14 < len);
+ ASSERT (501 * 14 <= len);
buffer[499] = 'f';
buffer[500] = '\0';
ASSERT (strcmp (buffer, line + 501 * 13) == 0);