diff options
Diffstat (limited to 'newlib/libc/stdio/vsnprintf.c')
-rw-r--r-- | newlib/libc/stdio/vsnprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdio/vsnprintf.c b/newlib/libc/stdio/vsnprintf.c index 5c617a8..ecf82ea 100644 --- a/newlib/libc/stdio/vsnprintf.c +++ b/newlib/libc/stdio/vsnprintf.c @@ -60,7 +60,7 @@ _vsnprintf_r (struct _reent *ptr, if (size > INT_MAX) { - ptr->_errno = EOVERFLOW; + _REENT_ERRNO(ptr) = EOVERFLOW; return EOF; } f._flags = __SWR | __SSTR; @@ -69,7 +69,7 @@ _vsnprintf_r (struct _reent *ptr, f._file = -1; /* No file. */ ret = _svfprintf_r (ptr, &f, fmt, ap); if (ret < EOF) - ptr->_errno = EOVERFLOW; + _REENT_ERRNO(ptr) = EOVERFLOW; if (size > 0) *f._p = 0; return ret; |