aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/wbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/wbuf.c')
-rw-r--r--newlib/libc/stdio/wbuf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/newlib/libc/stdio/wbuf.c b/newlib/libc/stdio/wbuf.c
index bd7f15d..33457f0 100644
--- a/newlib/libc/stdio/wbuf.c
+++ b/newlib/libc/stdio/wbuf.c
@@ -61,6 +61,8 @@ _DEFUN(__swbuf_r, (ptr, c, fp),
}
c = (unsigned char) c;
+ ORIENT (fp, -1);
+
/*
* If it is completely full, flush it out. Then, in any case,
* stuff c into the buffer. If this causes the buffer to fill