diff options
-rw-r--r-- | mdoc_validate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_validate.c b/mdoc_validate.c index 8d7cc1c9..30652cec 100644 --- a/mdoc_validate.c +++ b/mdoc_validate.c @@ -2580,7 +2580,7 @@ out: mdoc->meta.os_e = strstr(mdoc->meta.os, "OpenBSD") != NULL ? return; if ((n = n->child) == NULL) return; - if (strcmp(n->string, "$" "Mdocdate")) { + if (strncmp(n->string, "$" "Mdocdate", 9)) { if (mdoc->meta.os_e == MDOC_OS_OPENBSD) mandoc_vmsg(MANDOCERR_MDOCDATE_MISSING, mdoc->parse, n->line, n->pos, |