From 94f80f5e3f1c200db9f6661f08571e9103e7f172 Mon Sep 17 00:00:00 2001 From: Mike Shaver Date: Thu, 4 Sep 1997 20:33:13 +0000 Subject: Mark Salter's trailing-space fix. I can now boot from local disk! --- arch/mips/sgi/prom/cmdline.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/mips/sgi/prom/cmdline.c b/arch/mips/sgi/prom/cmdline.c index 4c7da5e43..35b6b48ac 100644 --- a/arch/mips/sgi/prom/cmdline.c +++ b/arch/mips/sgi/prom/cmdline.c @@ -1,4 +1,4 @@ -/* $Id: cmdline.c,v 1.1 1996/06/08 03:23:10 dm Exp $ +/* $Id: cmdline.c,v 1.1.1.1 1997/06/01 03:16:40 ralf Exp $ * cmdline.c: Kernel command line creation using ARCS argc/argv. * * Copyright (C) 1996 David S. Miller (dm@engr.sgi.com) @@ -52,6 +52,8 @@ void prom_init_cmdline(void) pic_cont: actr++; } + if (cp != &(arcs_cmdline[0])) /* get rid of trailing space */ + --cp; *cp = '\0'; #ifdef DEBUG_CMDLINE -- cgit v1.2.3