summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
authorpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-04-21 17:19:28 +0800
committerpiaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2005-04-21 17:19:28 +0800
commit2d8ee1c78013c104374613d064565aa7e14c4f2a (patch)
treed4b4df26a1745ff0e82a6f752463e1f4f3bf6697 /mbbsd/mail.c
parenta6162aedbc643514dccac3058888a81b63ea237d (diff)
downloadpttbbs-2d8ee1c78013c104374613d064565aa7e14c4f2a.tar
pttbbs-2d8ee1c78013c104374613d064565aa7e14c4f2a.tar.gz
pttbbs-2d8ee1c78013c104374613d064565aa7e14c4f2a.tar.bz2
pttbbs-2d8ee1c78013c104374613d064565aa7e14c4f2a.tar.lz
pttbbs-2d8ee1c78013c104374613d064565aa7e14c4f2a.tar.xz
pttbbs-2d8ee1c78013c104374613d064565aa7e14c4f2a.tar.zst
pttbbs-2d8ee1c78013c104374613d064565aa7e14c4f2a.zip
buffer overflow: file path [64] is too small!
use PATHLEN instead. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2706 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index e028908f..58ffc4f3 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -865,7 +865,7 @@ mail_del(int ent, const fileheader_t * fhdr, const char *direct)
static int
mail_read(int ent, fileheader_t * fhdr, const char *direct)
{
- char buf[64];
+ char buf[PATHLEN];
char done, delete_it, replied;
clear();
@@ -1156,7 +1156,7 @@ mail_cross_post(int ent, fileheader_t * fhdr, const char *direct)
int
mail_man(void)
{
- char buf[64], buf1[64];
+ char buf[PATHLEN], buf1[64];
int mode0 = currutmp->mode;
int stat0 = currstat;