summaryrefslogtreecommitdiffstats
path: root/mbbsd/fav.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/fav.c')
-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);