mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Fix usbd.conf parsing: fgetln(3) returns a string without terminating
NUL character so do not expect it. PR: bin/46489 MFC after: 1 week
This commit is contained in:
parent
a7010ee2f4
commit
fcb18f74b4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108256
@ -448,7 +448,7 @@ read_configuration(void)
|
||||
}
|
||||
|
||||
/* skip initial spaces */
|
||||
while (*line != '\0' && isspace(*line)) {
|
||||
while (len > 0 && isspace(*line)) {
|
||||
line++;
|
||||
len--;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user