diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-03 21:08:37 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2008-04-03 21:08:37 +0800 |
commit | 09ad37923288982a63098a7aa346ea79748f7eca (patch) | |
tree | ad0b24b51e730c1173f6a258e3aa0957f045c055 /mbbsd/admin.c | |
parent | ec3ed850be27c29ecc4d9fc2a0f0404f997fc7d6 (diff) | |
download | pttbbs-09ad37923288982a63098a7aa346ea79748f7eca.tar pttbbs-09ad37923288982a63098a7aa346ea79748f7eca.tar.gz pttbbs-09ad37923288982a63098a7aa346ea79748f7eca.tar.bz2 pttbbs-09ad37923288982a63098a7aa346ea79748f7eca.tar.lz pttbbs-09ad37923288982a63098a7aa346ea79748f7eca.tar.xz pttbbs-09ad37923288982a63098a7aa346ea79748f7eca.tar.zst pttbbs-09ad37923288982a63098a7aa346ea79748f7eca.zip |
- fix a 7-year bug? force_open should really "force" open file.
- (internal) code refine - drop MAXPATHLEN and change few magic number (256) to PATHLEN.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4072 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/admin.c')
-rw-r--r-- | mbbsd/admin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/admin.c b/mbbsd/admin.c index b0695b3b..5e188b59 100644 --- a/mbbsd/admin.c +++ b/mbbsd/admin.c @@ -452,7 +452,7 @@ m_mod_board(char *bname) { boardheader_t bh, newbh; int bid; - char genbuf[256], ans[4]; + char genbuf[PATHLEN], ans[4]; bid = getbnum(bname); if (!bid || !bname[0] || get_record(fn_board, &bh, sizeof(bh), bid) == -1) { @@ -491,7 +491,7 @@ m_mod_board(char *bname) break; case 'c': if (HasUserPerm(PERM_SYSOP)) { - char frombname[20], fromdir[256]; + char frombname[20], fromdir[PATHLEN]; #ifdef MERGEBBS if(getans("¬O§_¶×¤JSOB¬ÝªO? (y/N)")=='y') { @@ -719,7 +719,7 @@ int x_file(void) { int aborted, num; - char ans[4], *fpath, buf[256]; + char ans[4], *fpath, buf[PATHLEN]; move(b_lines - 7, 0); /* Ptt */ |