summaryrefslogtreecommitdiffstats
path: root/mdoc_validate.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-04-02 16:37:40 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-04-02 16:37:40 +0000
commitc6f2ac2795830a6dad4bb85a704413a2a9f0333c (patch)
tree9df4689f8928c8f1033961943dbd63bd89182b08 /mdoc_validate.c
parentcdb6fd7e9ca0c4e288d47005adc9c5de83127a32 (diff)
downloadmandoc-c6f2ac2795830a6dad4bb85a704413a2a9f0333c.tar.gz
Added -p1003.1-2008 specification.
Fixed invalid memory accesses (concat()). Made -fign-macro be the default for libman.
Diffstat (limited to 'mdoc_validate.c')
-rw-r--r--mdoc_validate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index 0ea04225..9056c8ae 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -311,7 +311,6 @@ const struct valids mdoc_valids[MDOC_MAX] = {
#ifdef __linux__
-extern size_t strlcpy(char *, const char *, size_t);
extern size_t strlcat(char *, const char *, size_t);
#endif
@@ -1352,6 +1351,7 @@ post_sh_head(POST_ARGS)
/* This is just concat() inlined, which is irritating. */
+ buf[0] = 0;
for (n = mdoc->last->child; n; n = n->next) {
assert(MDOC_TEXT == n->type);
if (strlcat(buf, n->string, 64) >= 64)