summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/ungetc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/ungetc.c')
-rw-r--r--lib/libc/stdio/ungetc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/stdio/ungetc.c b/lib/libc/stdio/ungetc.c
index 9273d07..cb38e9e 100644
--- a/lib/libc/stdio/ungetc.c
+++ b/lib/libc/stdio/ungetc.c
@@ -112,6 +112,9 @@ ungetc(int c, FILE *fp)
int
__ungetc(int c, FILE *fp)
{
+
+ ORIENT(fp, -1);
+
if (c == EOF)
return (EOF);
if ((fp->_flags & __SRD) == 0) {
OpenPOWER on IntegriCloud