Date: Thu, 26 Jun 2014 08:44:28 +0000 (UTC) From: Sergey Kandaurov <pluknet@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r267903 - stable/9/sys/kern Message-ID: <201406260844.s5Q8iS2b060044@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pluknet Date: Thu Jun 26 08:44:28 2014 New Revision: 267903 URL: http://svnweb.freebsd.org/changeset/base/267903 Log: MFC r261901: Preserve one character space for a trailing '\0'. Modified: stable/9/sys/kern/subr_hints.c Directory Properties: stable/9/sys/ (props changed) Modified: stable/9/sys/kern/subr_hints.c ============================================================================== --- stable/9/sys/kern/subr_hints.c Thu Jun 26 08:41:54 2014 (r267902) +++ stable/9/sys/kern/subr_hints.c Thu Jun 26 08:44:28 2014 (r267903) @@ -129,7 +129,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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406260844.s5Q8iS2b060044>