diff options
author | Ulrich Drepper <drepper@redhat.com> | 2002-02-19 07:23:04 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2002-02-19 07:23:04 +0000 |
commit | 13bc28f66b3ae49a7d93276e25436b2eb7a05565 (patch) | |
tree | 8adf6485c22581212c9c5da3b0daedf506361046 /libio/fileops.c | |
parent | 232bd771a3d50102597b20b2c2f2d420d41a1f19 (diff) | |
download | glibc-13bc28f66b3ae49a7d93276e25436b2eb7a05565.zip glibc-13bc28f66b3ae49a7d93276e25436b2eb7a05565.tar.gz glibc-13bc28f66b3ae49a7d93276e25436b2eb7a05565.tar.bz2 |
Update
2002-02-19 Jakub Jelinek <jakub@redhat.com>
* libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char
pointer before dereferencing.
Diffstat (limited to 'libio/fileops.c')
-rw-r--r-- | libio/fileops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/fileops.c b/libio/fileops.c index 60481b1..37c47ee 100644 --- a/libio/fileops.c +++ b/libio/fileops.c @@ -579,7 +579,7 @@ _IO_file_underflow_mmap (_IO_FILE *fp) fp->_offset = fp->_IO_buf_end - fp->_IO_buf_base; 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; |