diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2014-01-11 22:16:10 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2014-01-11 22:16:10 +0000 |
commit | 3017015a1ebfbcd47cb443146a0161f97d49cd43 (patch) | |
tree | 000d9ca4a8f7ac4b7c4210b98e09845aa6e242b2 | |
parent | 7f0a4e00d6451a92f201f80bd28775fd13ae8424 (diff) | |
download | mandoc-3017015a1ebfbcd47cb443146a0161f97d49cd43.tar.gz |
Remove useless use of strnlen(3).
Yuckiness pointed out by deraadt@.
-rw-r--r-- | mdoc_validate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 4e58bde0..fd0db4b6 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -1894,7 +1894,7 @@ post_hyph(POST_ARGS) if (MDOC_TEXT != nch->type) continue; cp = nch->string; - if (3 > strnlen(cp, 3)) + if ('\0' == *cp) continue; while ('\0' != *(++cp)) if ('-' == *cp && |