patch-2.1.73 linux/arch/mips/sgi/prom/cmdline.c

Next file: linux/arch/mips/sgi/prom/console.c
Previous file: linux/arch/mips/sgi/prom/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.72/linux/arch/mips/sgi/prom/cmdline.c linux/arch/mips/sgi/prom/cmdline.c
@@ -1,4 +1,4 @@
-/* $Id: cmdline.c,v 1.1 1997/06/06 09:36:53 ralf Exp $
+/* $Id: cmdline.c,v 1.2 1997/12/02 05:51:09 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 @@
 	pic_cont:
 		actr++;
 	}
+	if (cp != &(arcs_cmdline[0])) /* get rid of trailing space */
+		--cp;
 	*cp = '\0';
 
 #ifdef DEBUG_CMDLINE

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov