]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_IO_str_underflow): Read newly available character from buffer as unsigned.
authorUlrich Drepper <drepper@redhat.com>
Fri, 22 May 1998 17:18:11 +0000 (17:18 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 22 May 1998 17:18:11 +0000 (17:18 +0000)
libio/strops.c

index ed55c8e836d635bd833e8268a5ca7a431a8aac4b..98e854b67cbbeee3a8305094e0812e2572ba4af6 100644 (file)
@@ -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;
 }