aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/vfprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/vfprintf.c')
-rw-r--r--stdio-common/vfprintf.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/stdio-common/vfprintf.c b/stdio-common/vfprintf.c
index adfb65100c..822728e7e7 100644
--- a/stdio-common/vfprintf.c
+++ b/stdio-common/vfprintf.c
@@ -2062,6 +2062,11 @@ buffered_vfprintf (register _IO_FILE *s, const CHAR_T *format,
register _IO_FILE *hp = (_IO_FILE *) &helper._f;
int result, to_flush;
+ /* Orient the stream. */
+#ifdef ORIENT
+ ORIENT;
+#endif
+
/* Initialize helper. */
helper._put_stream = s;
#ifdef COMPILE_WPRINTF
@@ -2122,6 +2127,11 @@ buffered_vfprintf (register FILE *s, const CHAR_T *format, va_list args)
char buf[BUFSIZ];
int result;
+ /* Orient the stream. */
+#ifdef ORIENT
+ ORIENT;
+#endif
+
s->__bufp = s->__buffer = buf;
s->__bufsize = sizeof buf;
s->__put_limit = s->__buffer + s->__bufsize;