From 227071ffb7d2e1090f625954606d8757b2abbb07 Mon Sep 17 00:00:00 2001
From: piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>
Date: Sat, 21 Sep 2013 08:50:58 +0000
Subject: Fix password len on UI

git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5877 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
---
 pttbbs/mbbsd/user.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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("�Ъ`�N�]�w�K�X�u���e�K�Ӧr�����ġA�W�L���N�۰ʩ����C");
 
-	getdata(y++, 0, "���ˬd�s�K�X�G", buf, PASSLEN, PASSECHO);
+	getdata(y++, 0, "���ˬd�s�K�X�G", buf, PASS_INPUT_LEN + 1, PASSECHO);
 	if (strncmp(buf, genbuf, PASSLEN)) {
 	    outs("\n\n�s�K�X�T�{����, �L�k�]�w�s�K�X\n");
 	    fail++;
-- 
cgit v1.2.3