libc.c: do not lseek(2) on partial sector reads

This commit is contained in:
Xavier Del Campo Romero 2022-02-07 02:14:10 +01:00
parent e207690982
commit 51824e61d0
1 changed files with 0 additions and 1 deletions

View File

@ -288,7 +288,6 @@ static size_t cdromread(void *restrict ptr, size_t sz,
memcpy(ptr, &f->buf[first_sector_sz], firstsz);
ptr = (char *)ptr + firstsz;
f->pos += firstsz;
lseek(f->fildes, f->pos, SEEK_SET);
f->cache_available = 0;
readb += firstsz;
read_complete_sector = 1;