Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm Fix size parameter to memset. Found by gcc ...



details:   https://anonhg.NetBSD.org/src/rev/fff07796dfe9
branches:  trunk
changeset: 790484:fff07796dfe9
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Oct 14 18:14:08 2013 +0000

description:
Fix size parameter to memset. Found by gcc 4.8.

diffstat:

 sys/arch/arm/arm/process_machdep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6f3c20811db7 -r fff07796dfe9 sys/arch/arm/arm/process_machdep.c
--- a/sys/arch/arm/arm/process_machdep.c        Mon Oct 14 16:00:16 2013 +0000
+++ b/sys/arch/arm/arm/process_machdep.c        Mon Oct 14 18:14:08 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: process_machdep.c,v 1.27 2013/08/23 05:22:01 matt Exp $        */
+/*     $NetBSD: process_machdep.c,v 1.28 2013/10/14 18:14:08 skrll Exp $       */
 
 /*
  * Copyright (c) 1993 The Regents of the University of California.
@@ -133,7 +133,7 @@
 
 #include <sys/param.h>
 
-__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.27 2013/08/23 05:22:01 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.28 2013/10/14 18:14:08 skrll Exp $");
 
 #include <sys/proc.h>
 #include <sys/ptrace.h>
@@ -176,7 +176,7 @@
 {
 #ifdef FPU_VFP
        if (curcpu()->ci_vfp_id == 0) {
-               memset(regs, 0, sizeof(regs));
+               memset(regs, 0, sizeof(*regs));
                return 0;
        }
        const struct pcb * const pcb = lwp_getpcb(l);



Home | Main Index | Thread Index | Old Index