From 98e16cf7e150ec459b77655e73d2ad3d43ccf517 Mon Sep 17 00:00:00 2001 From: ptt Date: Sat, 29 Jun 2002 15:10:01 +0000 Subject: bug of gettime: git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@382 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/stuff.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mbbsd') diff --git a/mbbsd/stuff.c b/mbbsd/stuff.c index 750158a2..c563fc29 100644 --- a/mbbsd/stuff.c +++ b/mbbsd/stuff.c @@ -1,4 +1,4 @@ -/* $Id: stuff.c,v 1.5 2002/06/23 03:50:14 ptt Exp $ */ +/* $Id: stuff.c,v 1.6 2002/06/29 15:10:01 ptt Exp $ */ #include "bbs.h" /* ----------------------------------------------------- */ @@ -273,6 +273,7 @@ time_t gettime(int line, time_t dt) char yn[7]; struct tm *ptime = localtime(&dt), endtime; + memcpy(&endtime, ptime, sizeof(struct tm )); sprintf(yn, "%4d", ptime->tm_year+1900); do{ getdata_buf(line, 0, "¦è¤¸¦~:", yn, 5, LCECHO); -- cgit v1.2.3