summaryrefslogtreecommitdiffstatshomepage
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
commit283a645a5be6be0f447ac0aa651b641dbb6b5fc4 (patch)
tree1789dcdcfe31044b95be8b8148f2e278ca3d4523 /mdoc_validate.c
parent0b8142b5d9c31e6631daceec8e79caefcaf45e4b (diff)
downloadmandoc-283a645a5be6be0f447ac0aa651b641dbb6b5fc4.tar.gz
mandoc-283a645a5be6be0f447ac0aa651b641dbb6b5fc4.tar.zst
mandoc-283a645a5be6be0f447ac0aa651b641dbb6b5fc4.zip
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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c
index fdd73dbc..c9070dcc 100644
--- a/mdoc_validate.c
+++ b/mdoc_validate.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_validate.c,v 1.2 2009/03/31 13:50:19 kristaps Exp $ */
+/* $Id: mdoc_validate.c,v 1.3 2009/04/02 16:37:40 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@openbsd.org>
*
@@ -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)