finit.conf commands accepts multiple parameters

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
This commit is contained in:
Claudio Matsuoka
2008-08-11 19:02:55 -03:00
parent 9f83bbe788
commit 173853ca17
+5 -1
View File
@@ -132,8 +132,12 @@ static void build_cmd(char *cmd, char *x, int len)
char *c;
c = cmd + strlen(cmd);
/* skip spaces */
for (; *x && (*x == ' ' || *x == '\t'); x++);
for (l = 0; *x && *x != ' ' && *x != '\t' && l < len; l++)
/* copy next arg */
for (l = 0; *x && *x != '#' && *x != '\t' && l < len; l++)
*c++ = *x++;
*c = 0;
if (debug)