diff options
author | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-19 21:01:04 +0800 |
---|---|---|
committer | kcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-03-19 21:01:04 +0800 |
commit | af86ff908656d1b16a60704d80810ec5d2101726 (patch) | |
tree | c7f043c593e9ab13763af6230261374f50947625 | |
parent | 9398b4724f1e4dd166ce96ce83fe819606a1727b (diff) | |
download | pttbbs-af86ff908656d1b16a60704d80810ec5d2101726.tar pttbbs-af86ff908656d1b16a60704d80810ec5d2101726.tar.gz pttbbs-af86ff908656d1b16a60704d80810ec5d2101726.tar.bz2 pttbbs-af86ff908656d1b16a60704d80810ec5d2101726.tar.lz pttbbs-af86ff908656d1b16a60704d80810ec5d2101726.tar.xz pttbbs-af86ff908656d1b16a60704d80810ec5d2101726.tar.zst pttbbs-af86ff908656d1b16a60704d80810ec5d2101726.zip |
comment on bad code
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2639 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r-- | mbbsd/user.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)); |