Browse Source

Fix stdio bug w/ embedded zip filesystem

main
Justine Tunney 2 years ago
parent
commit
0ad0408ac6
  1. 2
      libc/zipos/read.c

2
libc/zipos/read.c

@ -39,6 +39,6 @@ ssize_t __zipos_read(struct ZiposHandle *h, const struct iovec *iov, @@ -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…
Cancel
Save