From owner-svn-src-stable@FreeBSD.ORG Thu Jun 26 08:41:54 2014 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D160C38D; Thu, 26 Jun 2014 08:41:54 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BDF902E30; Thu, 26 Jun 2014 08:41:54 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s5Q8fswu059611; Thu, 26 Jun 2014 08:41:54 GMT (envelope-from pluknet@svn.freebsd.org) Received: (from pluknet@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s5Q8fs9H059609; Thu, 26 Jun 2014 08:41:54 GMT (envelope-from pluknet@svn.freebsd.org) Message-Id: <201406260841.s5Q8fs9H059609@svn.freebsd.org> From: Sergey Kandaurov Date: Thu, 26 Jun 2014 08:41:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r267902 - stable/10/sys/kern X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2014 08:41:54 -0000 Author: pluknet Date: Thu Jun 26 08:41:54 2014 New Revision: 267902 URL: http://svnweb.freebsd.org/changeset/base/267902 Log: MFC r261901: Preserve one character space for a trailing '\0'. Modified: stable/10/sys/kern/subr_hints.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/kern/subr_hints.c ============================================================================== --- stable/10/sys/kern/subr_hints.c Thu Jun 26 08:30:08 2014 (r267901) +++ stable/10/sys/kern/subr_hints.c Thu Jun 26 08:41:54 2014 (r267902) @@ -210,7 +210,7 @@ res_find(int *line, int *startln, if (strncmp(cp, "hint.", 5) != 0) hit = 0; else - n = sscanf(cp, "hint.%32[^.].%d.%32[^=]=%128s", + n = sscanf(cp, "hint.%32[^.].%d.%32[^=]=%127s", r_name, &r_unit, r_resname, r_value); if (hit && n != 4) { printf("CONFIG: invalid hint '%s'\n", cp);