From dc069531069f046fc9026ca64b3fc05baf0526d4 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Mon, 24 May 2010 12:31:16 +0000 Subject: Lifted 64-byte max width for Sh (now BUFSIZ). --- mdoc_validate.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mdoc_validate.c b/mdoc_validate.c index f6c6297b..a4852804 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include @@ -1224,7 +1225,7 @@ post_sh_body(POST_ARGS) static int post_sh_head(POST_ARGS) { - char buf[64]; + char buf[BUFSIZ]; enum mdoc_sec sec; const struct mdoc_node *n; @@ -1246,13 +1247,13 @@ post_sh_head(POST_ARGS) /* XXX - copied from compact(). */ assert(MDOC_TEXT == n->type); - if (strlcat(buf, n->string, 64) >= 64) { + if (strlcat(buf, n->string, BUFSIZ) >= BUFSIZ) { mdoc_nmsg(mdoc, n, MANDOCERR_MEM); return(0); } if (NULL == n->next) continue; - if (strlcat(buf, " ", 64) >= 64) { + if (strlcat(buf, " ", BUFSIZ) >= BUFSIZ) { mdoc_nmsg(mdoc, n, MANDOCERR_MEM); return(0); } -- cgit