summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-08 08:53:28 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2004-04-08 08:53:28 +0800
commitb7d4f635b571a24bdc9ec879809211d261570c68 (patch)
tree9129b4988e6f72a6bbc198a551efdeba69119a31
parent274a2fd22fa13e8b65bcdd488c8a40db595410f2 (diff)
downloadpttbbs-b7d4f635b571a24bdc9ec879809211d261570c68.tar
pttbbs-b7d4f635b571a24bdc9ec879809211d261570c68.tar.gz
pttbbs-b7d4f635b571a24bdc9ec879809211d261570c68.tar.bz2
pttbbs-b7d4f635b571a24bdc9ec879809211d261570c68.tar.lz
pttbbs-b7d4f635b571a24bdc9ec879809211d261570c68.tar.xz
pttbbs-b7d4f635b571a24bdc9ec879809211d261570c68.tar.zst
pttbbs-b7d4f635b571a24bdc9ec879809211d261570c68.zip
depracated function
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1723 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/fav.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/fav.c b/mbbsd/fav.c
index 54f7a1b3..0de7ae61 100644
--- a/mbbsd/fav.c
+++ b/mbbsd/fav.c
@@ -457,7 +457,8 @@ int fav_save(void)
close(fd);
if (dashs(buf) == 4) {
char buf3[128];
- sprintf(buf3, "%s %s\n", Ctime(), cuser->userid);
+ time_t now = time(NULL);
+ sprintf(buf3, "%s %s", cuser->userid, ctime(&now));
log_file(BBSHOME"/dirty.hack", buf3, 1);
}
Rename(buf, buf2);