time: fix strftime being called strftime2

This commit is contained in:
Lephenixnoir 2022-08-22 15:07:00 +02:00
parent eb83e7442f
commit fda0d950ed
Signed by untrusted user: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 2 additions and 2 deletions

View File

@ -18,12 +18,12 @@ static const char *month_names[12] = {
}; break
/* Perform a sub-call to strftime to expand a complex format */
#define do_strftime(fmt) { \
size_t _written = strftime2(s+len, n-len, fmt, time); \
size_t _written = strftime(s+len, n-len, fmt, time); \
if(_written == 0) goto full; \
len += _written; \
}; break
size_t strftime2(char * restrict s, size_t n, const char * restrict format,
size_t strftime(char * restrict s, size_t n, const char * restrict format,
const struct tm * restrict time)
{
size_t len = 0;