Commit d2f02362 by Ulrich Drepper

(_IO_str_underflow): Read newly available character from buffer as unsigned.

From-SVN: r19961
parent cfdd0551
/* Copyright (C) 1993, 1997 Free Software Foundation, Inc. /* Copyright (C) 1993, 1997, 1998 Free Software Foundation, Inc.
This file is part of the GNU IO Library. This file is part of the GNU IO Library.
This library is free software; you can redistribute it and/or This library is free software; you can redistribute it and/or
...@@ -189,7 +189,7 @@ _IO_str_underflow (fp) ...@@ -189,7 +189,7 @@ _IO_str_underflow (fp)
fp->_IO_write_ptr = fp->_IO_write_end; fp->_IO_write_ptr = fp->_IO_write_end;
} }
if (fp->_IO_read_ptr < fp->_IO_read_end) if (fp->_IO_read_ptr < fp->_IO_read_end)
return *fp->_IO_read_ptr; return *((unsigned char *) fp->_IO_read_ptr);
else else
return EOF; return EOF;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment