Module Name:    src
Committed By:   skrll
Date:           Mon Oct 14 18:14:08 UTC 2013

Modified Files:
        src/sys/arch/arm/arm: process_machdep.c

Log Message:
Fix size parameter to memset. Found by gcc 4.8.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/arm/arm/process_machdep.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/arm/arm/process_machdep.c
diff -u src/sys/arch/arm/arm/process_machdep.c:1.27 src/sys/arch/arm/arm/process_machdep.c:1.28
--- src/sys/arch/arm/arm/process_machdep.c:1.27	Fri Aug 23 05:22:01 2013
+++ src/sys/arch/arm/arm/process_machdep.c	Mon Oct 14 18:14:08 2013
@@ -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 @@ process_read_fpregs(struct lwp *l, struc
 {
 #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);

Reply via email to