Treat \t and \n inside /boot.config as whitespaces.
PR: 19215
This commit is contained in:
parent
dd55b3d077
commit
b2d0212ee6
@ -298,9 +298,9 @@ parse(char *arg)
|
||||
int drv, c, i;
|
||||
|
||||
while ((c = *arg++)) {
|
||||
if (c == ' ')
|
||||
if (c == ' ' || c == '\t' || c == '\n')
|
||||
continue;
|
||||
for (p = arg; *p && *p != '\n' && *p != ' '; p++);
|
||||
for (p = arg; *p && *p != '\n' && *p != ' ' && *p != '\t'; p++);
|
||||
if (*p)
|
||||
*p++ = 0;
|
||||
if (c == '-') {
|
||||
|
@ -298,9 +298,9 @@ parse(char *arg)
|
||||
int drv, c, i;
|
||||
|
||||
while ((c = *arg++)) {
|
||||
if (c == ' ')
|
||||
if (c == ' ' || c == '\t' || c == '\n')
|
||||
continue;
|
||||
for (p = arg; *p && *p != '\n' && *p != ' '; p++);
|
||||
for (p = arg; *p && *p != '\n' && *p != ' ' && *p != '\t'; p++);
|
||||
if (*p)
|
||||
*p++ = 0;
|
||||
if (c == '-') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user