From b6bf00ed06a28fd6ebeba8d765a0148050697db1 Mon Sep 17 00:00:00 2001 From: Claudio Matsuoka Date: Mon, 5 May 2008 16:00:28 -0300 Subject: [PATCH] *sigh* Signed-off-by: Claudio Matsuoka --- finit-alt.c | 3 +++ 1 file changed, 3 insertions(+) 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; }