diff --git a/shell/shell.c b/shell/shell.c index 3cd97492118c8874afe19f43d5ca6367dd93e08d..c2c2731125ae1c6b8106712c00ff742724e4f527 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -286,9 +286,9 @@ int shell_boot_script(void) if(next==0) mprintf("Empty init script...\n"); break; } - cmd_buf[cmd_len] = 0; + cmd_buf[cmd_len-1] = 0; - mprintf("executing: %s", cmd_buf); + mprintf("executing: %s\n", cmd_buf); _shell_exec(); next = 1; }