diff options
author | pluknet <pluknet@FreeBSD.org> | 2014-06-26 08:41:54 +0000 |
---|---|---|
committer | pluknet <pluknet@FreeBSD.org> | 2014-06-26 08:41:54 +0000 |
commit | 2e4a0412a10e21f1c9dfdf32e4a653da5f8a0347 (patch) | |
tree | 61fc6cf9034b7881251f41caf8584e23526c7402 | |
parent | 15d33955d24d5a4bf051e41cff28951c6c2a54f2 (diff) | |
download | FreeBSD-src-2e4a0412a10e21f1c9dfdf32e4a653da5f8a0347.zip FreeBSD-src-2e4a0412a10e21f1c9dfdf32e4a653da5f8a0347.tar.gz |
MFC r261901:
Preserve one character space for a trailing '\0'.
-rw-r--r-- | sys/kern/subr_hints.c | 2 |
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); |