diff options
Diffstat (limited to 'arch/mips/au1000/common/prom.c')
-rw-r--r-- | arch/mips/au1000/common/prom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/mips/au1000/common/prom.c b/arch/mips/au1000/common/prom.c index 22e5a85af4d..9c171afd9a5 100644 --- a/arch/mips/au1000/common/prom.c +++ b/arch/mips/au1000/common/prom.c @@ -75,7 +75,8 @@ void prom_init_cmdline(void) } if (cp != &(arcs_cmdline[0])) /* get rid of trailing space */ --cp; - *cp = '\0'; + if (prom_argc > 1) + *cp = '\0'; } |