diff options
Diffstat (limited to 'newlib/libc/stdio/ungetc.c')
-rw-r--r-- | newlib/libc/stdio/ungetc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdio/ungetc.c b/newlib/libc/stdio/ungetc.c index d65cdda..0339a3d 100644 --- a/newlib/libc/stdio/ungetc.c +++ b/newlib/libc/stdio/ungetc.c @@ -127,6 +127,8 @@ _DEFUN(_ungetc_r, (rptr, c, fp), _flockfile (fp); + ORIENT (fp, -1); + /* After ungetc, we won't be at eof anymore */ fp->_flags &= ~__SEOF; |