From d74ae1e8f983520c4fa0322daeedc9bcc9304710 Mon Sep 17 00:00:00 2001 From: piaip Date: Mon, 5 May 2008 09:57:21 +0000 Subject: - (internal) replace all localtime4() by localtime4_r(). git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4272 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/calendar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mbbsd/calendar.c') 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; -- cgit v1.2.3