summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/libkvm/kvm_proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libkvm/kvm_proc.c b/lib/libkvm/kvm_proc.c
index 2c6cc5c..381c830 100644
--- a/lib/libkvm/kvm_proc.c
+++ b/lib/libkvm/kvm_proc.c
@@ -600,7 +600,7 @@ kvm_uread(kd, p, uva, buf, len)
_kvm_err(kd, kd->program, "invalid address (%x) in %s", uva, procfile);
break;
}
- amount = read(fd, buf, len);
+ amount = read(fd, cp, len);
if (amount < 0) {
_kvm_err(kd, kd->program, "error reading %s", procfile);
break;
OpenPOWER on IntegriCloud