summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-09 13:35:09 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-09 13:35:09 +0000
commit028cb9cf2041bbee0ed488b669254a2a8bc9ccb9 (patch)
tree5ab2627228735e61d73e125ca0c30cbd81138c0d /mdoc.c
parent79c252d0d501a7a16abd7ad9da42ff7440083ee4 (diff)
downloadmandoc-028cb9cf2041bbee0ed488b669254a2a8bc9ccb9.tar.gz
Fixed valgrind issues.VERSION.1.4.6
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc.c b/mdoc.c
index fffb2a92..cf97f493 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -501,10 +501,10 @@ macrowarn(struct mdoc *m, int ln, const char *buf)
{
if ( ! (MDOC_IGN_MACRO & m->pflags))
return(mdoc_perr(m, ln, 1, "unknown macro: %s%s",
- buf, buf[3] ? "..." : ""));
+ buf, strlen(buf) > 3 ? "..." : ""));
return(mdoc_pwarn(m, ln, 1, WARN_SYNTAX,
"unknown macro: %s%s",
- buf, buf[3] ? "..." : ""));
+ buf, strlen(buf) > 3 ? "..." : ""));
}