diff options
Diffstat (limited to 'newlib/libc/stdio/vswprintf.c')
-rw-r--r-- | newlib/libc/stdio/vswprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdio/vswprintf.c b/newlib/libc/stdio/vswprintf.c index 89795ed..08a8545 100644 --- a/newlib/libc/stdio/vswprintf.c +++ b/newlib/libc/stdio/vswprintf.c @@ -42,7 +42,7 @@ _vswprintf_r (struct _reent *ptr, if (size > INT_MAX / sizeof (wchar_t)) { - ptr->_errno = EOVERFLOW; /* POSIX extension */ + _REENT_ERRNO(ptr) = EOVERFLOW; /* POSIX extension */ return EOF; } f._flags = __SWR | __SSTR; @@ -60,7 +60,7 @@ _vswprintf_r (struct _reent *ptr, /* _svfwprintf_r() returns how many wide characters it would have printed * if there were enough space. Return an error if too big to fit in str, * unlike snprintf, which returns the size needed. */ - ptr->_errno = EOVERFLOW; /* POSIX extension */ + _REENT_ERRNO(ptr) = EOVERFLOW; /* POSIX extension */ ret = -1; } return ret; |