summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-27 11:19:20 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2008-05-27 11:19:20 +0800
commit8367f5a18fa7291a25359390e23dc9595275f8bf (patch)
tree652d7fda34e4c72e7da3decfb958a0873f7218c4
parent066989369dd49bf4a82b2eef8f827d4882f58ae1 (diff)
downloadpttbbs-8367f5a18fa7291a25359390e23dc9595275f8bf.tar
pttbbs-8367f5a18fa7291a25359390e23dc9595275f8bf.tar.gz
pttbbs-8367f5a18fa7291a25359390e23dc9595275f8bf.tar.bz2
pttbbs-8367f5a18fa7291a25359390e23dc9595275f8bf.tar.lz
pttbbs-8367f5a18fa7291a25359390e23dc9595275f8bf.tar.xz
pttbbs-8367f5a18fa7291a25359390e23dc9595275f8bf.tar.zst
pttbbs-8367f5a18fa7291a25359390e23dc9595275f8bf.zip
- fixed: boardlist->E->E board title input dialog too long.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4326 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--mbbsd/admin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c
index 134dadca..3103e831 100644
--- a/mbbsd/admin.c
+++ b/mbbsd/admin.c
@@ -626,8 +626,9 @@ m_mod_board(char *bname)
newbh.title[4] = ' ';
- getdata_str(14, 0, "看板主題:", genbuf, BTLEN + 1, DOECHO,
- bh.title + 7);
+ // 7 for category
+ getdata_str(14, 0, "看板主題:", genbuf,
+ BTLEN + 1 -7, DOECHO, bh.title + 7);
if (genbuf[0])
strlcpy(newbh.title + 7, genbuf, sizeof(newbh.title) - 7);
if (getdata_str(15, 0, "新板主名單:", genbuf, IDLEN * 3 + 3, DOECHO,