Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/stand/lib Use the size of what's at the bootin...



details:   https://anonhg.NetBSD.org/src/rev/a262835e17b1
branches:  trunk
changeset: 791662:a262835e17b1
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Wed Nov 27 18:29:45 2013 +0000

description:
Use the size of what's at the bootinfo_userconf pointer, not the size
of the pointer itself.

diffstat:

 sys/arch/i386/stand/lib/exec.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 50a2af7c22de -r a262835e17b1 sys/arch/i386/stand/lib/exec.c
--- a/sys/arch/i386/stand/lib/exec.c    Wed Nov 27 18:25:13 2013 +0000
+++ b/sys/arch/i386/stand/lib/exec.c    Wed Nov 27 18:29:45 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: exec.c,v 1.54 2013/11/24 17:20:00 jakllsch Exp $        */
+/*     $NetBSD: exec.c,v 1.55 2013/11/27 18:29:45 jakllsch Exp $        */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -636,7 +636,7 @@
        count = 0;
        for (uc = userconf_commands; uc != NULL; uc = uc->uc_next)
                count++;
-       len = sizeof(btinfo_userconfcommands) +
+       len = sizeof(*btinfo_userconfcommands) +
              count * sizeof(struct bi_userconfcommand);
 
        /* Allocate the userconf commands list */



Home | Main Index | Thread Index | Old Index