projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avoid failed assertion with tight malloc
[gnulib.git]
/
tests
/
test-getndelim2.c
diff --git
a/tests/test-getndelim2.c
b/tests/test-getndelim2.c
index
10ec1d8
..
d1eb12a
100644
(file)
--- a/
tests/test-getndelim2.c
+++ b/
tests/test-getndelim2.c
@@
-138,7
+138,7
@@
main (int argc, char **argv)
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);