summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorConstantine A. Murenin <cnst@cvs.openbsd.org>2007-08-09 04:12:13 +0000
committerConstantine A. Murenin <cnst@cvs.openbsd.org>2007-08-09 04:12:13 +0000
commit424c5a047a9a9e6141ba1a179ee7966da8174da3 (patch)
treecf0b0dbfb72b86127112ad481a60c0b55aea16f0 /sys/kern
parentf857529d0deb43e5b11dc890a8e27a1d232f640a (diff)
be more consistent in memcpy usage; no md5 change in .o; ok deraadt@
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_sysctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 7e2475ddfae..f758c47d275 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.154 2007/06/01 17:29:10 beck Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.155 2007/08/09 04:12:12 cnst Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -1815,7 +1815,7 @@ sysctl_sensors(int *name, u_int namelen, void *oldp, size_t *oldlenp,
/* Grab a copy, to clear the kernel pointers */
us = malloc(sizeof(*us), M_TEMP, M_WAITOK);
bzero(us, sizeof(*us));
- memcpy(us->desc, ks->desc, sizeof(ks->desc));
+ memcpy(us->desc, ks->desc, sizeof(us->desc));
us->tv = ks->tv;
us->value = ks->value;
us->type = ks->type;