diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-13 21:54:34 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-13 21:54:34 +0800 |
commit | 87c171ae1e929c62d0e3cf1db2e208fe54cbe965 (patch) | |
tree | a6e0844567f4afcef4965044a67cc5ad22216a44 /mbbsd/user.c | |
parent | 013a43d7cd0a0299638793bca0ebd371326e0284 (diff) | |
download | pttbbs-87c171ae1e929c62d0e3cf1db2e208fe54cbe965.tar pttbbs-87c171ae1e929c62d0e3cf1db2e208fe54cbe965.tar.gz pttbbs-87c171ae1e929c62d0e3cf1db2e208fe54cbe965.tar.bz2 pttbbs-87c171ae1e929c62d0e3cf1db2e208fe54cbe965.tar.lz pttbbs-87c171ae1e929c62d0e3cf1db2e208fe54cbe965.tar.xz pttbbs-87c171ae1e929c62d0e3cf1db2e208fe54cbe965.tar.zst pttbbs-87c171ae1e929c62d0e3cf1db2e208fe54cbe965.zip |
- fix loginview crash (having NULL entries)
- make aligned comments as exp feature
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4159 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/user.c')
-rw-r--r-- | mbbsd/user.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mbbsd/user.c b/mbbsd/user.c index 72e175a4..f2b4eda8 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -51,7 +51,8 @@ u_loginview(void) in = i; clrtobot(); - while ((i = getkey("請按 [A-N] 切換設定,按 [Return] 結束:"))!='\r') + while ((i = getkey("請按 [A-%c] 切換設定,按 [Return] 結束:", + 'A'+in-1))!='\r') { i = i - 'a'; if (i >= in || i < 0) |