diff options
Diffstat (limited to 'mbbsd/announce.c')
-rw-r--r-- | mbbsd/announce.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c index 35e9ecc0..12875b51 100644 --- a/mbbsd/announce.c +++ b/mbbsd/announce.c @@ -200,9 +200,10 @@ a_loadname(menu_t * pm) static void a_timestamp(char *buf, const time4_t *time) { - struct tm *pt = localtime4(time); + struct tm pt; - sprintf(buf, "%02d/%02d/%02d", pt->tm_mon + 1, pt->tm_mday, (pt->tm_year + 1900) % 100); + localtime4_r(time, &pt); + sprintf(buf, "%02d/%02d/%02d", pt.tm_mon + 1, pt.tm_mday, (pt.tm_year + 1900) % 100); } static int |