summaryrefslogtreecommitdiffstats
path: root/mbbsd/admin.c
diff options
context:
space:
mode:
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r--mbbsd/admin.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index c2a429f5..c5d94ca6 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -1069,12 +1069,14 @@ 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));
- strncpy(muser.justify, genbuf, REGLEN);
- sethomefile(buf, muser.userid, "justify");
- log_file(buf, LOG_CREAT | LOG_VF,
- "%s:%s:%s\n", fdata[5], fdata[3], uid);
+ snprintf(genbuf, sizeof(genbuf), "%s:%s:%s",
+ fdata[5], fdata[3], uid);
+ strlcpy(muser.justify, genbuf, sizeof(muser.justify));
passwd_update(unum, &muser);
+ sethomefile(buf, muser.userid, "justify");
+ log_file(buf, LOG_CREAT, genbuf);
+
if ((fout = fopen(logfile, "a"))) {
for (n = 0; field[n]; n++)
fprintf(fout, "%s: %s\n", field[n], fdata[n]);