Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/emips/stand/common PR/50537: David Binderman: fix b...
details: https://anonhg.NetBSD.org/src/rev/2357714b8af5
branches: trunk
changeset: 342242:2357714b8af5
user: christos <christos%NetBSD.org@localhost>
date: Sun Dec 13 18:24:50 2015 +0000
description:
PR/50537: David Binderman: fix bad sizeof
diffstat:
sys/arch/emips/stand/common/boot.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (22 lines):
diff -r 8b4d6397b205 -r 2357714b8af5 sys/arch/emips/stand/common/boot.c
--- a/sys/arch/emips/stand/common/boot.c Sun Dec 13 18:14:13 2015 +0000
+++ b/sys/arch/emips/stand/common/boot.c Sun Dec 13 18:24:50 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.3 2014/03/26 16:10:20 christos Exp $ */
+/* $NetBSD: boot.c,v 1.4 2015/12/13 18:24:50 christos Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -64,10 +64,10 @@
#define OPT_MAX PATH_MAX /* way overkill */
-static int loadit(char *name, u_long marks[MARK_MAX])
+static int loadit(char *name, u_long *marks)
{
printf("Loading: %s\n", name);
- memset(marks, 0, sizeof marks);
+ memset(marks, 0, sizeof(*marks) * MARK_MAX);
return (loadfile(name, marks, LOAD_ALL));
}
Home |
Main Index |
Thread Index |
Old Index