uiomove off by one mistake fix
@@ -79,7 +79,7 @@ int uiomove(void *buf, size_t n, uio_t *uio) {
int uiomove_frombuf(void *buf, size_t buflen, struct uio *uio) {
size_t offset = uio->uio_offset;
- assert(offset < buflen);
+ assert(offset <= buflen);
assert(uio->uio_offset >= 0);
return (uiomove((char *)buf + offset, buflen - offset, uio));
