From 3c40ba99eb5ef9cebf5941e3611963d7a5a407a5 Mon Sep 17 00:00:00 2001 From: piaip Date: Sun, 10 Mar 2013 12:23:01 +0000 Subject: Fix category editing UI git-svn-id: http://opensvn.csie.org/pttbbs/trunk@5801 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- pttbbs/mbbsd/board.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pttbbs/mbbsd/board.c b/pttbbs/mbbsd/board.c index e176508a..462c615d 100644 --- a/pttbbs/mbbsd/board.c +++ b/pttbbs/mbbsd/board.c @@ -229,7 +229,7 @@ b_posttype() boardheader_t *bp; int i, modified = 0, types = 0; char filepath[PATHLEN], genbuf[60]; - char posttype_f, posttype[33]="", *p; + char posttype_f, posttype[sizeof(bp->posttype)]="", *p; assert(0<=currbid-1 && currbid-1posttype, posttype, sizeof(bp->posttype)); modified = 1; } - if (modified) + if (modified) { substitute_record(fn_board, bp, sizeof(boardheader_t), currbid); + vmsg("資料已更新。"); + } return FULLUPDATE; } -- cgit v1.2.3