diff options
Diffstat (limited to 'string')
-rw-r--r-- | string/tst-strlen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/string/tst-strlen.c b/string/tst-strlen.c index 1b1f8344b8..a1e115927b 100644 --- a/string/tst-strlen.c +++ b/string/tst-strlen.c @@ -31,7 +31,8 @@ main(int argc, char *argv[]) buf[words * 4 + 3] = (last & 8) != 0 ? 'e' : '\0'; buf[words * 4 + 4] = '\0'; - if (strlen (buf) != words * 4 + lens[last]) + if (strlen (buf) != words * 4 + lens[last] + || strnlen (buf, -1) != words * 4 + lens[last]) { printf ("failed for base=%Zu, words=%Zu, and last=%Zu\n", base, words, last); |