diff options
Diffstat (limited to 'mbbsd/calendar.c')
-rw-r--r-- | mbbsd/calendar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/calendar.c b/mbbsd/calendar.c index ba290aa2..db3f4f43 100644 --- a/mbbsd/calendar.c +++ b/mbbsd/calendar.c @@ -313,7 +313,7 @@ calendar(void) event_t *head = NULL, *e = NULL; /* initialize date */ - memcpy(&snow, localtime4(&now), sizeof(struct tm)); + localtime4_r(&now, &snow); today = Days(snow.tm_year + 1900, snow.tm_mon + 1, snow.tm_mday); y = snow.tm_year + 1900, m = snow.tm_mon + 1; |