summaryrefslogtreecommitdiffstats
path: root/mbbsd/admin.c
diff options
context:
space:
mode:
authorin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-07 19:48:42 +0800
committerin2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-12-07 19:48:42 +0800
commite67dbfb410cb519dbd4ae3e0f3cd12aef46e48f2 (patch)
tree6917e3ead4beec72534673b799b5e51add0a0519 /mbbsd/admin.c
parentf596ac6e290311dea6c2181816b7d096127696a8 (diff)
downloadpttbbs-e67dbfb410cb519dbd4ae3e0f3cd12aef46e48f2.tar
pttbbs-e67dbfb410cb519dbd4ae3e0f3cd12aef46e48f2.tar.gz
pttbbs-e67dbfb410cb519dbd4ae3e0f3cd12aef46e48f2.tar.bz2
pttbbs-e67dbfb410cb519dbd4ae3e0f3cd12aef46e48f2.tar.lz
pttbbs-e67dbfb410cb519dbd4ae3e0f3cd12aef46e48f2.tar.xz
pttbbs-e67dbfb410cb519dbd4ae3e0f3cd12aef46e48f2.tar.zst
pttbbs-e67dbfb410cb519dbd4ae3e0f3cd12aef46e48f2.zip
use open() instead of fopen() in log_file()
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1405 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r--mbbsd/admin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index db28cb99..b1553f3c 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -974,7 +974,8 @@ scan_register_form(char *regfile, int automode, int neednum)
"%s:%s:%s", fdata[5], fdata[3], uid);
strncpy(muser.justify, genbuf, REGLEN);
sethomefile(buf, muser.userid, "justify");
- log_file(buf, genbuf);
+ strncat(genbuf, "\n", sizeof(genbuf));
+ log_file(buf, genbuf, 1);
passwd_update(unum, &muser);
if ((fout = fopen(logfile, "a"))) {