diff options
Diffstat (limited to 'newlib/libc/stdio/sprintf.c')
-rw-r--r-- | newlib/libc/stdio/sprintf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/newlib/libc/stdio/sprintf.c b/newlib/libc/stdio/sprintf.c index 8582272d7..55d1a447f 100644 --- a/newlib/libc/stdio/sprintf.c +++ b/newlib/libc/stdio/sprintf.c @@ -324,14 +324,13 @@ _sprintf_r (ptr, str, fmt, va_alist) f._flags = __SWR | __SSTR; f._bf._base = f._p = (unsigned char *) str; f._bf._size = f._w = INT_MAX; - f._data = ptr; f._file = -1; /* No file. */ #ifdef _HAVE_STDC va_start (ap, fmt); #else va_start (ap); #endif - ret = vfprintf (&f, fmt, ap); + ret = _vfprintf_r (ptr, &f, fmt, ap); va_end (ap); *f._p = 0; return (ret); @@ -356,14 +355,13 @@ sprintf (str, fmt, va_alist) f._flags = __SWR | __SSTR; f._bf._base = f._p = (unsigned char *) str; f._bf._size = f._w = INT_MAX; - f._data = _REENT; f._file = -1; /* No file. */ #ifdef _HAVE_STDC va_start (ap, fmt); #else va_start (ap); #endif - ret = vfprintf (&f, fmt, ap); + ret = _vfprintf_r (_REENT, &f, fmt, ap); va_end (ap); *f._p = 0; return (ret); |