Fix stdio bug w/ embedded zip filesystem

main
Justine Tunney 2020-06-27 11:48:29 -07:00
parent d5c3a6f039
commit 0ad0408ac6
1 changed files with 1 additions and 1 deletions

View File

@ -39,6 +39,6 @@ ssize_t __zipos_read(struct ZiposHandle *h, const struct iovec *iov,
b = min(iov[i].iov_len, h->size - y);
memcpy(iov[i].iov_base, h->mem + y, b);
}
if (opt_offset != -1) h->pos = y;
if (opt_offset == -1) h->pos = y;
return y - x;
}