diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-05 17:57:21 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-05-05 17:57:21 +0800 |
commit | d74ae1e8f983520c4fa0322daeedc9bcc9304710 (patch) | |
tree | 3a04ff9fc8b8b5fee6704e695d132a7cc3f4efb0 /mbbsd/calendar.c | |
parent | b31a0e3d53ce17d4626fe125dd1e1f654a0d192c (diff) | |
download | pttbbs-d74ae1e8f983520c4fa0322daeedc9bcc9304710.tar pttbbs-d74ae1e8f983520c4fa0322daeedc9bcc9304710.tar.gz pttbbs-d74ae1e8f983520c4fa0322daeedc9bcc9304710.tar.bz2 pttbbs-d74ae1e8f983520c4fa0322daeedc9bcc9304710.tar.lz pttbbs-d74ae1e8f983520c4fa0322daeedc9bcc9304710.tar.xz pttbbs-d74ae1e8f983520c4fa0322daeedc9bcc9304710.tar.zst pttbbs-d74ae1e8f983520c4fa0322daeedc9bcc9304710.zip |
- (internal) replace all localtime4() by localtime4_r().
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4272 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
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; |