summaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-05-24 12:31:16 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-05-24 12:31:16 +0000
commit20526549156576987015d28d52f6c5bc00f1e708 (patch)
tree26f045b647c9f0aeaeafe6d455d919b472355581 /mdoc_validate.c
parentaccf9fd8fc2f262a27c05a8fdc3ef58b2658ca33 (diff)
downloadmandoc-20526549156576987015d28d52f6c5bc00f1e708.tar.gz
mandoc-20526549156576987015d28d52f6c5bc00f1e708.tar.zst
mandoc-20526549156576987015d28d52f6c5bc00f1e708.zip
Lifted 64-byte max width for Sh (now BUFSIZ).
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 3976b282..ded07a08 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_validate.c,v 1.80 2010/05/17 23:57:06 kristaps Exp $ */
+/* $Id: mdoc_validate.c,v 1.81 2010/05/24 12:31:16 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -23,6 +23,7 @@
#include <assert.h>
#include <ctype.h>
#include <limits.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -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);
}