summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pttbbs/mbbsd/user.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pttbbs/mbbsd/user.c b/pttbbs/mbbsd/user.c
index 182c9490..ea6d75ba 100644
--- a/pttbbs/mbbsd/user.c
+++ b/pttbbs/mbbsd/user.c
@@ -1026,7 +1026,7 @@ uinfo_query(const char *orig_uid, int adminmode, int unum)
move(y+1, 0);
outs("請注意設定密碼只有前八個字元有效,超過的將自動忽略。");
- getdata(y++, 0, "請檢查新密碼:", buf, PASSLEN, PASSECHO);
+ getdata(y++, 0, "請檢查新密碼:", buf, PASS_INPUT_LEN + 1, PASSECHO);
if (strncmp(buf, genbuf, PASSLEN)) {
outs("\n\n新密碼確認失敗, 無法設定新密碼\n");
fail++;