diff --git a/src/time/strftime.c b/src/time/strftime.c index 6a6f91a..39d4c59 100644 --- a/src/time/strftime.c +++ b/src/time/strftime.c @@ -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;