summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorpluknet <pluknet@FreeBSD.org>2014-06-26 08:41:54 +0000
committerpluknet <pluknet@FreeBSD.org>2014-06-26 08:41:54 +0000
commit2e4a0412a10e21f1c9dfdf32e4a653da5f8a0347 (patch)
tree61fc6cf9034b7881251f41caf8584e23526c7402 /sys/kern
parent15d33955d24d5a4bf051e41cff28951c6c2a54f2 (diff)
downloadFreeBSD-src-2e4a0412a10e21f1c9dfdf32e4a653da5f8a0347.zip
FreeBSD-src-2e4a0412a10e21f1c9dfdf32e4a653da5f8a0347.tar.gz
MFC r261901:
Preserve one character space for a trailing '\0'.
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/subr_hints.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_hints.c b/sys/kern/subr_hints.c
index db45fb8..f9085b2 100644
--- a/sys/kern/subr_hints.c
+++ b/sys/kern/subr_hints.c
@@ -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);
OpenPOWER on IntegriCloud