diff options
Diffstat (limited to 'newlib/libc/time/asctime.c')
-rw-r--r-- | newlib/libc/time/asctime.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/time/asctime.c b/newlib/libc/time/asctime.c index e4011856d..4ad35e806 100644 --- a/newlib/libc/time/asctime.c +++ b/newlib/libc/time/asctime.c @@ -57,8 +57,8 @@ char * _DEFUN (asctime, (tim_p), _CONST struct tm *tim_p) { - _REENT_CHECK_ASCTIME_BUF(_REENT); - return asctime_r (tim_p, _REENT_ASCTIME_BUF(_REENT)); + char *buf = _REENT->_new._reent._asctime_buf; + return asctime_r (tim_p, buf); } #endif |