Only bcopy the correct amount of data from the buffer in case it is ever

in an overrun situation.
This commit is contained in:
peter 1998-09-28 22:04:54 +00:00
parent bc25156633
commit 501805c399

View File

@ -53,7 +53,7 @@ i386_readin(int fd, vm_offset_t dest, size_t len)
got = read(fd, buf, get);
if (got <= 0)
break;
bcopy(buf, PTOV(dest), chunk);
bcopy(buf, PTOV(dest), got);
}
free(buf);
return(len - resid);