diff options
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/init/init.c b/init/init.c index 586e34a..ff9dc06 100644 --- a/init/init.c +++ b/init/init.c @@ -414,6 +414,7 @@ static void init_exec(const char *command) char *word, *next; int i = 0; next = strcpy(buf, command - dash); /* command including "-" */ + command = next + dash; while ((word = strsep(&next, " \t")) != NULL) { if (*word != '\0') { /* not two spaces/tabs together? */ cmd[i] = word; |