From af86ff908656d1b16a60704d80810ec5d2101726 Mon Sep 17 00:00:00 2001 From: kcwu Date: Sat, 19 Mar 2005 13:01:04 +0000 Subject: comment on bad code git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2639 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/user.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mbbsd') diff --git a/mbbsd/user.c b/mbbsd/user.c index e12fa9be..2788aebc 100644 --- a/mbbsd/user.c +++ b/mbbsd/user.c @@ -514,6 +514,7 @@ uinfo_query(userec_t * u, int real, int unum) getdata_buf(i++, 0, "最近光臨機器:", x.lasthost, sizeof(x.lasthost), DOECHO); + // XXX 一變數不要多用途亂用 "fail" snprintf(genbuf, sizeof(genbuf), "%d", x.numlogins); if (getdata_str(i++, 0, "上線次數:", buf, 10, DOECHO, genbuf)) if ((fail = atoi(buf)) >= 0) @@ -736,6 +737,7 @@ uinfo_query(userec_t * u, int real, int unum) char msg[200]; clrtobot(); clear(); + // XXX 此時斷線則修改資料沒 log while (!getdata(5, 0, "請輸入理由以示負責:", reason, sizeof(reason), DOECHO)); -- cgit v1.2.3