forked from Vhex-Kernel-Core/fxlibc
time: fix strftime being called strftime2
This commit is contained in:
parent
eb83e7442f
commit
fda0d950ed
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue