From 0625a57d35f6d15a0a54393e5625707717977926 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ulrich=20Sp=C3=B6rlein?= <uqs@FreeBSD.org>
Date: Sat, 20 Oct 2012 10:16:55 +0000
Subject: [PATCH] strcmp(3) will suffice here, also follow the style of the
 remaining file more closely.

Prodded by:	ed
---
 contrib/mdocml/mdoc_validate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/mdocml/mdoc_validate.c b/contrib/mdocml/mdoc_validate.c
index 91f94837534b..0a1fce25029b 100644
--- a/contrib/mdocml/mdoc_validate.c
+++ b/contrib/mdocml/mdoc_validate.c
@@ -2234,7 +2234,7 @@ post_os(POST_ARGS)
 			mdoc_nmsg(mdoc, n, MANDOCERR_MEM);
 			return(0);
 		}
-		if (strncmp(utsname.sysname, "FreeBSD", sizeof("FreeBSD")) == 0)
+		if (0 == strcmp(utsname.sysname, "FreeBSD"))
 			strtok(utsname.release, "-");
 		if (strlcat(buf, utsname.release, BUFSIZ) >= BUFSIZ) {
 			mdoc_nmsg(mdoc, n, MANDOCERR_MEM);