mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
1998-05-22 Ulrich Drepper <drepper@cygnus.com> * libio/strops.c (_IO_str_underflow): Read newly available character from buffer as unsigned.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* 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 library is free software; you can redistribute it and/or
|
||||
@ -189,7 +189,7 @@ _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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user