From 285648fcbae02d0e8248162aebc886c9c35b1f23 Mon Sep 17 00:00:00 2001 From: victor Date: Tue, 13 Jun 2006 09:17:28 +0000 Subject: use exactly the length of the chinese board name git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@3369 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/voteboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mbbsd/voteboard.c b/mbbsd/voteboard.c index ff89ec1a..b85253aa 100644 --- a/mbbsd/voteboard.c +++ b/mbbsd/voteboard.c @@ -221,7 +221,7 @@ do_voteboard(int type) snprintf(genbuf, sizeof(genbuf), "%s\n\n%s%s\n%s", "申請新板", "英文名稱: ", topic, "中文名稱: "); - if (!getdata(8, 0, "請輸入看板中文名稱:", topic, 20, DOECHO)) + if (!getdata(8, 0, "請輸入看板中文名稱:", topic, BTLEN + 1, DOECHO)) return FULLUPDATE; strcat(genbuf, topic); strcat(genbuf, "\n看板類別: "); -- cgit v1.2.3