When parsing command line stuff, treat tabs and spaces the same.
When creating complex config files, people like to use tabs to offset sections. Treat them the same as spaces for delimiters.
This commit is contained in:
parent
3782136ff1
commit
2834e42cda
@ -199,13 +199,13 @@ boot_parse_cmdline_delim(char *cmdline, const char *delim)
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Simplified interface for common 'space separated' args
|
||||
* @brief Simplified interface for common 'space or tab separated' args
|
||||
*/
|
||||
int
|
||||
boot_parse_cmdline(char *cmdline)
|
||||
{
|
||||
|
||||
return (boot_parse_cmdline_delim(cmdline, " \n"));
|
||||
return (boot_parse_cmdline_delim(cmdline, " \t\n"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user