aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/stdio/asnprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdio/asnprintf.c')
-rw-r--r--newlib/libc/stdio/asnprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/stdio/asnprintf.c b/newlib/libc/stdio/asnprintf.c
index f657f9e..f825561 100644
--- a/newlib/libc/stdio/asnprintf.c
+++ b/newlib/libc/stdio/asnprintf.c
@@ -42,7 +42,7 @@ _asnprintf_r (struct _reent *__restrict ptr,
for _size. */
if (len > INT_MAX)
{
- ptr->_errno = EOVERFLOW;
+ _REENT_ERRNO(ptr) = EOVERFLOW;
return NULL;
}
f._bf._size = f._w = len;
@@ -94,7 +94,7 @@ asnprintf (char *__restrict buf,
for _size. */
if (len > INT_MAX)
{
- ptr->_errno = EOVERFLOW;
+ _REENT_ERRNO(ptr) = EOVERFLOW;
return NULL;
}
f._bf._size = f._w = len;