summaryrefslogtreecommitdiffstats
path: root/mbbsd
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-06-13 17:17:28 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2006-06-13 17:17:28 +0800
commit285648fcbae02d0e8248162aebc886c9c35b1f23 (patch)
tree6606b93d908d38c8cb47613beeddae25cf888c08 /mbbsd
parentd26f99faec0d4d3b300770af69fddd1a4723bdbc (diff)
downloadpttbbs-285648fcbae02d0e8248162aebc886c9c35b1f23.tar
pttbbs-285648fcbae02d0e8248162aebc886c9c35b1f23.tar.gz
pttbbs-285648fcbae02d0e8248162aebc886c9c35b1f23.tar.bz2
pttbbs-285648fcbae02d0e8248162aebc886c9c35b1f23.tar.lz
pttbbs-285648fcbae02d0e8248162aebc886c9c35b1f23.tar.xz
pttbbs-285648fcbae02d0e8248162aebc886c9c35b1f23.tar.zst
pttbbs-285648fcbae02d0e8248162aebc886c9c35b1f23.zip
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
Diffstat (limited to 'mbbsd')
-rw-r--r--mbbsd/voteboard.c2
1 files changed, 1 insertions, 1 deletions
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看板類別: ");