summaryrefslogtreecommitdiffstats
path: root/mbbsd/mail.c
diff options
context:
space:
mode:
authorkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-11-01 01:04:41 +0800
committerkcwu <kcwu@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-11-01 01:04:41 +0800
commitb65230cdce248ef4fb3ceae899484bfeadf916f1 (patch)
tree5f95ef492c69dd86020e167e0bf56aa6347b3370 /mbbsd/mail.c
parenta2834d7c52ba401accfcee956a5d7934448588a8 (diff)
downloadpttbbs-b65230cdce248ef4fb3ceae899484bfeadf916f1.tar
pttbbs-b65230cdce248ef4fb3ceae899484bfeadf916f1.tar.gz
pttbbs-b65230cdce248ef4fb3ceae899484bfeadf916f1.tar.bz2
pttbbs-b65230cdce248ef4fb3ceae899484bfeadf916f1.tar.lz
pttbbs-b65230cdce248ef4fb3ceae899484bfeadf916f1.tar.xz
pttbbs-b65230cdce248ef4fb3ceae899484bfeadf916f1.tar.zst
pttbbs-b65230cdce248ef4fb3ceae899484bfeadf916f1.zip
buffer size
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1283 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r--mbbsd/mail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c
index 396beb04..1a323a57 100644
--- a/mbbsd/mail.c
+++ b/mbbsd/mail.c
@@ -1471,7 +1471,7 @@ bbs_sendmail(char *fpath, char *title, char *receiver)
"X-Disclaimer: " BBSNAME "對本信內容恕不負責。\n\n",
receiver, title);
- while (fgets(genbuf, 255, fin)) {
+ while (fgets(genbuf, sizeof(genbuf), fin)) {
if (genbuf[0] == '.' && genbuf[1] == '\n')
fputs(". \n", fout);
else