diff --git a/lib/libc/stdtime/strftime.c b/lib/libc/stdtime/strftime.c index 2712d95ed276..23120f2cf7cf 100644 --- a/lib/libc/stdtime/strftime.c +++ b/lib/libc/stdtime/strftime.c @@ -446,7 +446,7 @@ _conv(n, format, pt, ptlim) { char buf[INT_STRLEN_MAXIMUM(int) + 1]; - (void) snprintf(buf, sizeof(buf), format, n); + (void) sprintf(buf, format, n); return _add(buf, pt, ptlim); }