ooops, fix a glitch in the previous commit...
authorschwarze <schwarze@openbsd.org>
Sun, 11 Jun 2017 20:02:48 +0000 (20:02 +0000)
committerschwarze <schwarze@openbsd.org>
Sun, 11 Jun 2017 20:02:48 +0000 (20:02 +0000)
usr.bin/mandoc/mdoc_validate.c

index 257e720..13ee30c 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: mdoc_validate.c,v 1.252 2017/06/11 19:36:31 schwarze Exp $ */
+/*     $OpenBSD: mdoc_validate.c,v 1.253 2017/06/11 20:02:48 schwarze Exp $ */
 /*
  * Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
  * Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -2565,7 +2565,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,