Fix new bug introduced when fixing previous bug.

This commit is contained in:
Vreixo Formoso
2008-02-08 22:32:33 +01:00
parent b501546627
commit e6593c9738
2 changed files with 6 additions and 4 deletions

View File

@ -620,7 +620,7 @@ int ifs_read(IsoFileSource *src, void *buf, size_t count)
/* how much can I read */
bytes = MIN(BLOCK_SIZE - (data->data.offset % BLOCK_SIZE),
count - read);
if (data->data.offset + (off_t)bytes > data->info.st_size) {
if (data->data.offset + (off_t)bytes > data->info.st_size) {
bytes = data->info.st_size - data->data.offset;
}
orig = data->data.content;