From dc1520b4978f746559ff906b901c12442b7f5466 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 22 May 1998 17:18:11 +0000 Subject: [PATCH] (_IO_str_underflow): Read newly available character from buffer as unsigned. --- libio/strops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.2