patch-1.3.50 linux/arch/mips/kernel/setup.c
Next file: linux/arch/ppc/kernel/setup.c
Previous file: linux/arch/i386/kernel/setup.c
Back to the patch index
Back to the overall index
-  Lines: 18
 -  Date:
Thu Dec 21 12:05:17 1995
 -  Orig file: 
v1.3.49/linux/arch/mips/kernel/setup.c
 -  Orig date: 
Sun Dec 17 11:43:11 1995
 
diff -u --recursive --new-file v1.3.49/linux/arch/mips/kernel/setup.c linux/arch/mips/kernel/setup.c
@@ -216,6 +216,7 @@
 #endif
 
 static char command_line[CL_SIZE] = { 0, };
+       char saved_command_line[CL_SIZE];
 
 #if 0
 /*
@@ -306,6 +307,9 @@
 
 	memory_start = (unsigned long) &_end;
 	memory_start += (ramdisk_size << 10);
+
+	memcpy(saved_command_line, command_line, CL_SIZE);
+	saved_command_line[CL_SIZE-1] = '\0';
 
 	*cmdline_p = command_line;
 	*memory_start_p = memory_start;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this