From: Ulrich Drepper Date: Tue, 19 Feb 2002 07:23:04 +0000 (+0000) Subject: Update X-Git-Tag: cvs/glibc-2-3~1054 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=13bc28f66b3ae49a7d93276e25436b2eb7a05565;p=thirdparty%2Fglibc.git Update 2002-02-19 Jakub Jelinek * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char pointer before dereferencing. --- diff --git a/ChangeLog b/ChangeLog index 9a42abb6072..a5696690383 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-02-19 Jakub Jelinek + + * libio/fileops.c (_IO_file_underflow_mmap): Cast to unsigned char + pointer before dereferencing. + 2002-02-18 Roland McGrath * sysdeps/mach/hurd/times.c: Fix typo in last change. diff --git a/libio/fileops.c b/libio/fileops.c index 60481b1af4e..37c47eef898 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;