mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
Fix stdio bug w/ embedded zip filesystem
This commit is contained in:
parent
d5c3a6f039
commit
0ad0408ac6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue