diff options
| author | njoly <njoly@NetBSD.org> | 2008-12-29 22:21:49 +0000 |
|---|---|---|
| committer | njoly <njoly@NetBSD.org> | 2008-12-29 22:21:49 +0000 |
| commit | e85166daa85f1f3df155f04adfc6e2da58425c67 (patch) | |
| tree | c358579ce7bb08b7011484024775a22a1e0f683b /sys/compat/linux32/common/linux32_time.c | |
| parent | f8829b7dcb71749eda1811e47241bff0ee48f465 (diff) | |
Fix stime(2) inverted copyin arguments.
Diffstat (limited to 'sys/compat/linux32/common/linux32_time.c')
| -rw-r--r-- | sys/compat/linux32/common/linux32_time.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux32/common/linux32_time.c b/sys/compat/linux32/common/linux32_time.c index fff02cb3b07..f44e963ded5 100644 --- a/sys/compat/linux32/common/linux32_time.c +++ b/sys/compat/linux32/common/linux32_time.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux32_time.c,v 1.26 2008/12/29 14:33:40 njoly Exp $ */ +/* $NetBSD: linux32_time.c,v 1.27 2008/12/29 22:21:49 njoly Exp $ */ /*- * Copyright (c) 2006 Emmanuel Dreyfus, all rights reserved. @@ -33,7 +33,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux32_time.c,v 1.26 2008/12/29 14:33:40 njoly Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux32_time.c,v 1.27 2008/12/29 22:21:49 njoly Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -199,7 +199,7 @@ linux32_sys_stime(struct lwp *l, const struct linux32_sys_stime_args *uap, regis linux32_time_t tt32; int error; - if ((error = copyin(&tt32, SCARG_P32(uap, t), sizeof tt32)) != 0) + if ((error = copyin(SCARG_P32(uap, t), &tt32, sizeof tt32)) != 0) return error; ts.tv_sec = (long)tt32; |
