Treat \t and \n inside /boot.config as whitespaces.

PR:		19215
This commit is contained in:
ru 2000-06-13 13:07:53 +00:00
parent dd55b3d077
commit b2d0212ee6
2 changed files with 4 additions and 4 deletions

View File

@ -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 == '-') {

View File

@ -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 == '-') {