Date: Thu, 26 Jun 2014 08:41:54 +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-10@freebsd.org Subject: svn commit: r267902 - stable/10/sys/kern Message-ID: <201406260841.s5Q8fs9H059609@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406260841.s5Q8fs9H059609>