diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-29 23:10:01 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-06-29 23:10:01 +0800 |
commit | 2c29c607308f2329451f12862cbf2d3b40e8eaa9 (patch) | |
tree | 675648430f91a2955b5192a40c553cefc818498b | |
parent | fc54bc37b026e6d0fe5b037a14a6c70c28b67bbc (diff) | |
download | pttbbs-2c29c607308f2329451f12862cbf2d3b40e8eaa9.tar pttbbs-2c29c607308f2329451f12862cbf2d3b40e8eaa9.tar.gz pttbbs-2c29c607308f2329451f12862cbf2d3b40e8eaa9.tar.bz2 pttbbs-2c29c607308f2329451f12862cbf2d3b40e8eaa9.tar.lz pttbbs-2c29c607308f2329451f12862cbf2d3b40e8eaa9.tar.xz pttbbs-2c29c607308f2329451f12862cbf2d3b40e8eaa9.tar.zst pttbbs-2c29c607308f2329451f12862cbf2d3b40e8eaa9.zip |
bug of gettime:
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@382 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | pttbbs/mbbsd/stuff.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/stuff.c b/pttbbs/mbbsd/stuff.c index 750158a2..c563fc29 100644 --- a/pttbbs/mbbsd/stuff.c +++ b/pttbbs/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); |