diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-04-29 15:05:45 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-04-29 15:05:45 +0800 |
commit | 00c4a848e63ee19ca7f36ba6e7ba0102cc086c09 (patch) | |
tree | 8c69ebd77b845199df8573a7a7dd153e42d01fee /mbbsd/announce.c | |
parent | da81316536e0af773dc46e9779d384fcb23e890b (diff) | |
download | pttbbs-00c4a848e63ee19ca7f36ba6e7ba0102cc086c09.tar pttbbs-00c4a848e63ee19ca7f36ba6e7ba0102cc086c09.tar.gz pttbbs-00c4a848e63ee19ca7f36ba6e7ba0102cc086c09.tar.bz2 pttbbs-00c4a848e63ee19ca7f36ba6e7ba0102cc086c09.tar.lz pttbbs-00c4a848e63ee19ca7f36ba6e7ba0102cc086c09.tar.xz pttbbs-00c4a848e63ee19ca7f36ba6e7ba0102cc086c09.tar.zst pttbbs-00c4a848e63ee19ca7f36ba6e7ba0102cc086c09.zip |
fix buffer overflow
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@133 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/announce.c')
-rw-r--r-- | mbbsd/announce.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mbbsd/announce.c b/mbbsd/announce.c index 5920e45e..2064ba9d 100644 --- a/mbbsd/announce.c +++ b/mbbsd/announce.c @@ -1,4 +1,4 @@ -/* $Id: announce.c,v 1.5 2002/04/28 19:35:28 in2 Exp $ */ +/* $Id: announce.c,v 1.6 2002/04/29 07:05:45 in2 Exp $ */ #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -1248,7 +1248,7 @@ static void atitle() { } #endif -extern char currtitle[]; +extern char currtitle[TTLEN + 1]; char trans_buffer[256]; extern char quote_file[]; |