diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-30 02:13:39 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2004-04-30 02:13:39 +0800 |
commit | 6c783cd8609ba2e65267eaa2cda8c46d7fc4ac8c (patch) | |
tree | 8829f8b00e4343f8d8ea97606ce4e58ccb186034 /mbbsd/admin.c | |
parent | 4b2f5eeff9950ef1b7dd620d77efffc876aa76fa (diff) | |
download | pttbbs-6c783cd8609ba2e65267eaa2cda8c46d7fc4ac8c.tar pttbbs-6c783cd8609ba2e65267eaa2cda8c46d7fc4ac8c.tar.gz pttbbs-6c783cd8609ba2e65267eaa2cda8c46d7fc4ac8c.tar.bz2 pttbbs-6c783cd8609ba2e65267eaa2cda8c46d7fc4ac8c.tar.lz pttbbs-6c783cd8609ba2e65267eaa2cda8c46d7fc4ac8c.tar.xz pttbbs-6c783cd8609ba2e65267eaa2cda8c46d7fc4ac8c.tar.zst pttbbs-6c783cd8609ba2e65267eaa2cda8c46d7fc4ac8c.zip |
change log_file()
log_user()
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1889 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r-- | mbbsd/admin.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c index 2175f764..6e98ff2e 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -1065,12 +1065,9 @@ scan_register_form(char *regfile, int automode, int neednum) strlcpy(muser.realname, fdata[2], sizeof(muser.realname)); strlcpy(muser.address, fdata[4], sizeof(muser.address)); strlcpy(muser.email, fdata[6], sizeof(muser.email)); - snprintf(genbuf, sizeof(genbuf), - "%s:%s:%s", fdata[5], fdata[3], uid); strncpy(muser.justify, genbuf, REGLEN); sethomefile(buf, muser.userid, "justify"); - strncat(genbuf, "\n", sizeof(genbuf)); - log_file(buf, genbuf, 1); + log_file(buf, 1, "%s:%s:%s\n", fdata[5], fdata[3], uid); passwd_update(unum, &muser); if ((fout = fopen(logfile, "a"))) { |