Minor command line fix

Leigh Brown leigh at solinno.co.uk
Tue Oct 8 07:48:50 EST 2002


Hi,

I think it's a bug, and I think this fixes it.

Cheers,

Leigh.

diff -urNX /home/leigh/.diffex linuxppc_2_4_devel-prev/arch/ppc/kernel/setup.c linuxppc_2_4_devel-local/arch/ppc/kernel/setup.c
--- linuxppc_2_4_devel-prev/arch/ppc/kernel/setup.c	Sun Sep  8 18:38:47 2002
+++ linuxppc_2_4_devel-local/arch/ppc/kernel/setup.c	Sun Sep  8 18:39:26 2002
@@ -471,7 +471,8 @@
 		ulong *data = rec->data;
 		switch (rec->tag) {
 		case BI_CMD_LINE:
-			memcpy(cmd_line, (void *)data, rec->size);
+			memcpy(cmd_line, (void *)data, rec->size -
+						      sizeof(struct bi_record));
 			break;
 		case BI_SYSMAP:
 			sysmap = (char *)((data[0] >= (KERNELBASE)) ? data[0] :


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list