diff options
Diffstat (limited to 'mbbsd/fav.c')
-rw-r--r-- | mbbsd/fav.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mbbsd/fav.c b/mbbsd/fav.c index 8d1381cb..c5bd6c0d 100644 --- a/mbbsd/fav.c +++ b/mbbsd/fav.c @@ -456,10 +456,9 @@ int fav_save(void) write_favrec(fd, fp); close(fd); if (dashs(buf) == 4) { - char buf3[128]; time_t now = time(NULL); - sprintf(buf3, "%s %s", cuser.userid, ctime(&now)); - log_file(BBSHOME"/dirty.hack", buf3, 1); + log_file(BBSHOME "/dirty.hack", LOG_CREAT | LOG_VF, + "%s %s", cuser.userid, ctime(&now)); return -1; } Rename(buf, buf2); |