Module Name:    src
Committed By:   martin
Date:           Sun Jul 12 14:06:52 UTC 2015

Modified Files:
        src/sys/compat/netbsd32: netbsd32_time.c

Log Message:
Use the right type in sizeof() for copyin() in adjtime


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/compat/netbsd32/netbsd32_time.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/compat/netbsd32/netbsd32_time.c
diff -u src/sys/compat/netbsd32/netbsd32_time.c:1.42 src/sys/compat/netbsd32/netbsd32_time.c:1.43
--- src/sys/compat/netbsd32/netbsd32_time.c:1.42	Tue Oct  2 01:44:28 2012
+++ src/sys/compat/netbsd32/netbsd32_time.c	Sun Jul 12 14:06:52 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: netbsd32_time.c,v 1.42 2012/10/02 01:44:28 christos Exp $	*/
+/*	$NetBSD: netbsd32_time.c,v 1.43 2015/07/12 14:06:52 martin Exp $	*/
 
 /*
  * Copyright (c) 1998, 2001 Matthew R. Green
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_time.c,v 1.42 2012/10/02 01:44:28 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_time.c,v 1.43 2015/07/12 14:06:52 martin Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ntp.h"
@@ -332,7 +332,7 @@ netbsd32___adjtime50(struct lwp *l, cons
 	
 	if (SCARG_P32(uap, delta)) {
 		error = copyin(SCARG_P32(uap, delta), &atv,
-			       sizeof(struct timeval));
+			       sizeof(atv));
 		if (error)
 			return (error);
 

Reply via email to