diff options
Diffstat (limited to 'newlib/libc/stdio/refill.c')
-rw-r--r-- | newlib/libc/stdio/refill.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/newlib/libc/stdio/refill.c b/newlib/libc/stdio/refill.c index ca48a4500..66ce4ca22 100644 --- a/newlib/libc/stdio/refill.c +++ b/newlib/libc/stdio/refill.c @@ -94,7 +94,7 @@ _DEFUN (__srefill, (fp), */ if (fp->_flags & (__SLBF | __SNBF)) - (void) _fwalk (fp->_data, lflush); + (void) _fwalk (_GLOBAL_REENT, lflush); fp->_p = fp->_bf._base; fp->_r = (*fp->_read) (fp->_cookie, (char *) fp->_p, fp->_bf._size); fp->_flags &= ~__SMOD; /* buffer contents are again pristine */ |