diff options
author | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-12-24 14:58:25 +0800 |
---|---|---|
committer | scw <scw@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-12-24 14:58:25 +0800 |
commit | 36b8776e3788b80fa07f4e43288bc60ab1d69b13 (patch) | |
tree | 1f4ec895fe0f0f6147a0dca582a2def8b96b8b75 /mbbsd/mail.c | |
parent | a2bd0bb8576c56e3221ecfd600700821076cf914 (diff) | |
download | pttbbs-36b8776e3788b80fa07f4e43288bc60ab1d69b13.tar pttbbs-36b8776e3788b80fa07f4e43288bc60ab1d69b13.tar.gz pttbbs-36b8776e3788b80fa07f4e43288bc60ab1d69b13.tar.bz2 pttbbs-36b8776e3788b80fa07f4e43288bc60ab1d69b13.tar.lz pttbbs-36b8776e3788b80fa07f4e43288bc60ab1d69b13.tar.xz pttbbs-36b8776e3788b80fa07f4e43288bc60ab1d69b13.tar.zst pttbbs-36b8776e3788b80fa07f4e43288bc60ab1d69b13.zip |
Rewrite strip_ansi() (also move from vote.c to io.c).
Using STRIP_ALL instead of 0 when calling strip_ansi.
Fix some buffer overflow problem.
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@1428 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/mail.c')
-rw-r--r-- | mbbsd/mail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/mail.c b/mbbsd/mail.c index 8db98d2a..171269af 100644 --- a/mbbsd/mail.c +++ b/mbbsd/mail.c @@ -233,7 +233,7 @@ do_send(char *userid, char *title) { fileheader_t mhdr; char fpath[STRLEN]; - char receiver[IDLEN]; + char receiver[IDLEN + 1]; char genbuf[200]; int internet_mail, i; |