Fix from Gary Jennejohn - use 'cp' not 'buf' in read call. Oops.
This commit is contained in:
parent
fb7164eda6
commit
567127fa54
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user