2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
* io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET consistently within the loop.
This commit is contained in:
parent
0229e5c0ce
commit
708367a39f
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
|
||||||
|
|
||||||
|
* io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
|
||||||
|
consistently within the loop.
|
||||||
|
|
||||||
2005-10-15 Marco Gerards <mgerards@xs4all.nl>
|
2005-10-15 Marco Gerards <mgerards@xs4all.nl>
|
||||||
|
|
||||||
* fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
|
* fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
|
||||||
|
|
|
@ -1193,7 +1193,7 @@ grub_gzio_read (grub_file_t file, char *buf, grub_ssize_t len)
|
||||||
inflate_window (file);
|
inflate_window (file);
|
||||||
|
|
||||||
srcaddr = (char *) ((offset & (WSIZE - 1)) + gzio->slide);
|
srcaddr = (char *) ((offset & (WSIZE - 1)) + gzio->slide);
|
||||||
size = gzio->saved_offset - file->offset;
|
size = gzio->saved_offset - offset;
|
||||||
if (size > len)
|
if (size > len)
|
||||||
size = len;
|
size = len;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue