diff --git a/finit-alt.c b/finit-alt.c index b2e46a4f..d945409c 100644 --- a/finit-alt.c +++ b/finit-alt.c @@ -174,6 +174,7 @@ int main() strcpy(cmd, "/sbin/e2fsck -C -p "); c = cmd + strlen(cmd); while (x && *x && *x != ' ') *c++ = *x++; + *c = 0; system(cmd); continue; } @@ -181,6 +182,7 @@ int main() x += 5; c = username; while (x && *x && *x != ' ') *c++ = *x++; + *c = 0; continue; } if ((x = strstr(line, "module ")) == line) { @@ -188,6 +190,7 @@ int main() strcpy(cmd, "/sbin/modprobe "); c = cmd + strlen(cmd); while (x && *x && *x != ' ') *c++ = *x++; + *c = 0; system(cmd); continue; }