aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/vfwprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/vfwprintf.c')
-rw-r--r--newlib/libc/stdio/vfwprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdio/vfwprintf.c b/newlib/libc/stdio/vfwprintf.c
index 7384b37..7807a12 100644
--- a/newlib/libc/stdio/vfwprintf.c
+++ b/newlib/libc/stdio/vfwprintf.c
@@ -611,7 +611,7 @@ _VFWPRINTF_R (struct _reent *data,
fp->_bf._base = fp->_p = _malloc_r (data, 64);
if (!fp->_p)
{
- data->_errno = ENOMEM;
+ _REENT_ERRNO(data) = ENOMEM;
return EOF;
}
fp->_bf._size = 64;
@@ -1119,7 +1119,7 @@ reswitch: switch (ch) {
case L'm': /* GNU extension */
{
int dummy;
- cp = (wchar_t *) _strerror_r (data, data->_errno, 1, &dummy);
+ cp = (wchar_t *) _strerror_r (data, _REENT_ERRNO(data), 1, &dummy);
}
flags &= ~LONGINT;
goto string;