Support having spaces in kcmdline-parsed kernel command line paremeters by using the UNIT SEPARATOR

This commit is contained in:
K. Lange 2018-08-14 11:39:00 +09:00
parent 6430ce85b3
commit 0f9c404ee8

View File

@ -41,6 +41,14 @@ void args_parse(char * _arg) {
*v = '\0';
v++;
value = v;
char * tmp = value;
/* scan it for \037 and replace with spaces */
while (*tmp) {
if (*tmp == '\037') {
*tmp = ' ';
}
tmp++;
}
goto _break;
}
v++;