Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-3]: src/sys/arch/xen/i386 Pull up following revision(s) (requeste...



details:   https://anonhg.NetBSD.org/src/rev/40c74d9ef9bb
branches:  netbsd-3
changeset: 577810:40c74d9ef9bb
user:      riz <riz%NetBSD.org@localhost>
date:      Sun Feb 05 17:22:19 2006 +0000

description:
Pull up following revision(s) (requested by bouyer in ticket #1157):
        sys/arch/xen/i386/xen_machdep.c: revision 1.16
Fix bad cut'n'paste: use the target of strncpy() in sizeof().

diffstat:

 sys/arch/xen/i386/xen_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r d9b582ae00a0 -r 40c74d9ef9bb sys/arch/xen/i386/xen_machdep.c
--- a/sys/arch/xen/i386/xen_machdep.c   Sun Feb 05 17:15:01 2006 +0000
+++ b/sys/arch/xen/i386/xen_machdep.c   Sun Feb 05 17:22:19 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xen_machdep.c,v 1.6.2.6 2005/08/28 09:56:21 tron Exp $ */
+/*     $NetBSD: xen_machdep.c,v 1.6.2.7 2006/02/05 17:22:19 riz Exp $  */
 
 /*
  *
@@ -33,7 +33,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xen_machdep.c,v 1.6.2.6 2005/08/28 09:56:21 tron Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xen_machdep.c,v 1.6.2.7 2006/02/05 17:22:19 riz Exp $");
 
 #include "opt_xen.h"
 
@@ -150,7 +150,7 @@
                case XEN_PARSE_BOOTDEV:
                        if (strncasecmp(opt, "bootdev=", 8) == 0)
                                strncpy(xcp->xcp_bootdev, opt + 8,
-                                   sizeof(xcp->xcp_console));
+                                   sizeof(xcp->xcp_bootdev));
                        break;
 
                case XEN_PARSE_NETINFO:



Home | Main Index | Thread Index | Old Index