From: Ulrich Drepper Date: Fri, 22 May 1998 17:18:11 +0000 (+0000) Subject: (_IO_str_underflow): Read newly available character from buffer as unsigned. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc1520b4978f746559ff906b901c12442b7f5466;p=thirdparty%2Fglibc.git (_IO_str_underflow): Read newly available character from buffer as unsigned. --- diff --git a/libio/strops.c b/libio/strops.c index ed55c8e836d..98e854b67cb 100644 --- a/libio/strops.c +++ b/libio/strops.c @@ -182,7 +182,7 @@ DEFUN(_IO_str_underflow, (fp), fp->_IO_write_ptr = fp->_IO_write_end; } if (fp->_IO_read_ptr < fp->_IO_read_end) - return *fp->_IO_read_ptr; + return *((unsigned char *) fp->_IO_read_ptr); else return EOF; }