svn commit: r267902 - stable/10/sys/kern
Sergey Kandaurov
pluknet at FreeBSD.org
Thu Jun 26 08:41:54 UTC 2014
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);
More information about the svn-src-stable-10
mailing list