Update
2002-02-19 Jakub Jelinek <jakub@redhat.com> * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char pointer before dereferencing.
This commit is contained in:
parent
232bd771a3
commit
13bc28f66b
|
@ -1,3 +1,8 @@
|
||||||
|
2002-02-19 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
* libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
|
||||||
|
pointer before dereferencing.
|
||||||
|
|
||||||
2002-02-18 Roland McGrath <roland@frob.com>
|
2002-02-18 Roland McGrath <roland@frob.com>
|
||||||
|
|
||||||
* sysdeps/mach/hurd/times.c: Fix typo in last change.
|
* sysdeps/mach/hurd/times.c: Fix typo in last change.
|
||||||
|
|
|
@ -579,7 +579,7 @@ _IO_file_underflow_mmap (_IO_FILE *fp)
|
||||||
|
|
||||||
fp->_offset = fp->_IO_buf_end - fp->_IO_buf_base;
|
fp->_offset = fp->_IO_buf_end - fp->_IO_buf_base;
|
||||||
fp->_IO_read_end = fp->_IO_buf_end;
|
fp->_IO_read_end = fp->_IO_buf_end;
|
||||||
return *fp->_IO_read_ptr;
|
return *(unsigned char *) fp->_IO_read_ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
fp->_flags |= _IO_EOF_SEEN;
|
fp->_flags |= _IO_EOF_SEEN;
|
||||||
|
|
Loading…
Reference in New Issue