Fix from Gary Jennejohn - use 'cp' not 'buf' in read call. Oops.

This commit is contained in:
David Greenman 1994-11-02 16:38:51 +00:00
parent fb7164eda6
commit 567127fa54

View File

@ -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;