X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/6dccf0e0b5e80b7b6176e8d332e646175431bb3d..507116e319a1470bb0a5040d4d23e5c76955ef97:/stdtime/FreeBSD/asctime.c diff --git a/stdtime/FreeBSD/asctime.c b/stdtime/FreeBSD/asctime.c index 89804ab..c96c408 100644 --- a/stdtime/FreeBSD/asctime.c +++ b/stdtime/FreeBSD/asctime.c @@ -10,6 +10,7 @@ */ #include +#include #ifndef lint #ifndef NOID static char elsieid[] __unused = "@(#)asctime.c 8.2"; @@ -105,7 +106,7 @@ asctime_r(const struct tm * __restrict timeptr, char * __restrict buf) ** Assume that strftime is unaffected by other out-of-range members ** (e.g., timeptr->tm_mday) when processing "%Y". */ - (void) strftime(year, sizeof year, "%Y", timeptr); + (void) strftime_l(year, sizeof(year), "%Y", timeptr, NULL); /* ** We avoid using snprintf since it's not available on all systems. */