Module Name: src
Committed By: jakllsch
Date: Wed Nov 27 18:29:45 UTC 2013
Modified Files:
src/sys/arch/i386/stand/lib: exec.c
Log Message:
Use the size of what's at the bootinfo_userconf pointer, not the size
of the pointer itself.
To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/sys/arch/i386/stand/lib/exec.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/i386/stand/lib/exec.c
diff -u src/sys/arch/i386/stand/lib/exec.c:1.54 src/sys/arch/i386/stand/lib/exec.c:1.55
--- src/sys/arch/i386/stand/lib/exec.c:1.54 Sun Nov 24 17:20:00 2013
+++ src/sys/arch/i386/stand/lib/exec.c Wed Nov 27 18:29:45 2013
@@ -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 @@ userconf_init(void)
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 */