summaryrefslogtreecommitdiffstats
path: root/lib/libkvm/kvm_file2.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2012-03-28 16:01:30 +0000
committerguenther <guenther@openbsd.org>2012-03-28 16:01:30 +0000
commit5990d487fa19c11b9f30d254d0c089579eec2310 (patch)
treeacdd85c26080136968705d37f1d4c76350ac3ad8 /lib/libkvm/kvm_file2.c
parentTake some additional steps needed to make the PHY on EC Ultra/8056 (diff)
downloadwireguard-openbsd-5990d487fa19c11b9f30d254d0c089579eec2310.tar.xz
wireguard-openbsd-5990d487fa19c11b9f30d254d0c089579eec2310.zip
The kinfo_file2 structure's f_wbytes member was being filled with the
read byte count instead of the written byte count. pointed out by paulm at tetrardus.net, ok dcoppa@
Diffstat (limited to 'lib/libkvm/kvm_file2.c')
-rw-r--r--lib/libkvm/kvm_file2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libkvm/kvm_file2.c b/lib/libkvm/kvm_file2.c
index cfb11f92043..f9765065687 100644
--- a/lib/libkvm/kvm_file2.c
+++ b/lib/libkvm/kvm_file2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm_file2.c,v 1.20 2012/03/13 17:28:51 tedu Exp $ */
+/* $OpenBSD: kvm_file2.c,v 1.21 2012/03/28 16:01:30 guenther Exp $ */
/*
* Copyright (c) 2009 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -480,7 +480,7 @@ fill_file2(kvm_t *kd, struct kinfo_file2 *kf, struct file *fp, struct vnode *vp,
kf->f_rwfer = fp->f_wxfer;
kf->f_seek = fp->f_seek;
kf->f_rbytes = fp->f_rbytes;
- kf->f_wbytes = fp->f_rbytes;
+ kf->f_wbytes = fp->f_wbytes;
}
} else if (vp != NULL) {
/* fake it */