MFC r261901:
Preserve one character space for a trailing '\0'.
This commit is contained in:
parent
15d33955d2
commit
2e4a0412a1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user