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/mail.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/mail.c')
-rw-r--r-- | mbbsd/mail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 58068c3b..17dea28e 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -1059,7 +1059,7 @@ maildoent(int num, fileheader_t * ent) /* evaluate size */ size_t filesz = 0; char ut = 'k'; - char buf[MAXPATHLEN]; + char buf[PATHLEN]; struct stat st; if( !ent->filename[0] ){ @@ -2099,7 +2099,7 @@ int load_mailalert(const char *userid) { struct stat st; - char maildir[MAXPATHLEN]; + char maildir[PATHLEN]; int fd; register int num; fileheader_t my_mail; |