diff options
author | 2017-06-11 20:02:48 +0000 | |
---|---|---|
committer | 2017-06-11 20:02:48 +0000 | |
commit | 07ec32d0bdf4fe12236b1624822d235ae0a7e08a (patch) | |
tree | ba316a604b01447bf576284406d93ab7afb97b45 | |
parent | Use a common 'goto bad' style and set mp to NULL after freeing it (diff) | |
download | wireguard-openbsd-07ec32d0bdf4fe12236b1624822d235ae0a7e08a.tar.xz wireguard-openbsd-07ec32d0bdf4fe12236b1624822d235ae0a7e08a.zip |
ooops, fix a glitch in the previous commit...
-rw-r--r-- | usr.bin/mandoc/mdoc_validate.c | 4 |
1 files 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 <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, |