diff options
Diffstat (limited to 'newlib/libc/machine/powerpc/vfprintf.c')
-rw-r--r-- | newlib/libc/machine/powerpc/vfprintf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/newlib/libc/machine/powerpc/vfprintf.c b/newlib/libc/machine/powerpc/vfprintf.c index 8aadb4b15..aac5fb2fb 100644 --- a/newlib/libc/machine/powerpc/vfprintf.c +++ b/newlib/libc/machine/powerpc/vfprintf.c @@ -239,6 +239,7 @@ __sbprintf(fp, fmt, ap) unsigned char buf[BUFSIZ]; /* copy the important variables */ + fake._data = fp->_data; fake._flags = fp->_flags & ~__SNBF; fake._file = fp->_file; fake._cookie = fp->_cookie; @@ -321,8 +322,8 @@ _DEFUN (VFPRINTF, (fp, fmt0, ap), _CONST char *fmt0 _AND va_list ap) { - CHECK_INIT (_REENT); - return _VFPRINTF_R (_REENT, fp, fmt0, ap); + CHECK_INIT (fp); + return _VFPRINTF_R (fp->_data, fp, fmt0, ap); } int |