summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-29 23:10:01 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2002-06-29 23:10:01 +0800
commit98e16cf7e150ec459b77655e73d2ad3d43ccf517 (patch)
tree74684d426df2621473dcc98b90b4c871d6c13fa0 /mbbsd
parent096cfe7716399ae0d564dac9e793e9e8768029dc (diff)
downloadpttbbs-98e16cf7e150ec459b77655e73d2ad3d43ccf517.tar
pttbbs-98e16cf7e150ec459b77655e73d2ad3d43ccf517.tar.gz
pttbbs-98e16cf7e150ec459b77655e73d2ad3d43ccf517.tar.bz2
pttbbs-98e16cf7e150ec459b77655e73d2ad3d43ccf517.tar.lz
pttbbs-98e16cf7e150ec459b77655e73d2ad3d43ccf517.tar.xz
pttbbs-98e16cf7e150ec459b77655e73d2ad3d43ccf517.tar.zst
pttbbs-98e16cf7e150ec459b77655e73d2ad3d43ccf517.zip
bug of gettime:
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@382 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/stuff.c3
1 files changed, 2 insertions, 1 deletions
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);