summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mbbsd/mbbsd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mbbsd/mbbsd.c b/mbbsd/mbbsd.c
index 31cf0bc7..3e1fbef0 100644
--- a/mbbsd/mbbsd.c
+++ b/mbbsd/mbbsd.c
@@ -689,15 +689,18 @@ login_query(void)
exit(1);
}
bzero(&cuser, sizeof(cuser));
+
#ifdef DEBUG
move(19, 0);
prints("current pid: %d ", getpid());
#endif
- while (getdata(20, 0, "請輸入代號,或以[guest]參觀,以[new]註冊:",
+
+ if (getdata(20, 0, "請輸入代號,或以[guest]參觀,以[new]註冊:",
uid, sizeof(uid), DOECHO) < 1)
{
// got nothing
outs("請重新輸入。\n");
+ continue;
}
#ifdef CONVERT