From 07ec32d0bdf4fe12236b1624822d235ae0a7e08a Mon Sep 17 00:00:00 2001 From: schwarze Date: Sun, 11 Jun 2017 20:02:48 +0000 Subject: [PATCH] ooops, fix a glitch in the previous commit... --- usr.bin/mandoc/mdoc_validate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/mandoc/mdoc_validate.c b/usr.bin/mandoc/mdoc_validate.c index 257e7204f6a..13ee30cc51c 100644 --- a/usr.bin/mandoc/mdoc_validate.c +++ b/usr.bin/mandoc/mdoc_validate.c @@ -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 * Copyright (c) 2010-2017 Ingo Schwarze @@ -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, -- 2.20.1