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/var.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/var.c')
-rw-r--r-- | mbbsd/var.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/var.c b/mbbsd/var.c index 7b07f63b..6f531c21 100644 --- a/mbbsd/var.c +++ b/mbbsd/var.c @@ -1,4 +1,4 @@ -/* $Id: var.c,v 1.1 2002/03/07 15:13:48 in2 Exp $ */ +/* $Id: var.c,v 1.2 2002/04/29 07:05:45 in2 Exp $ */ #include <stdio.h> #include <sys/types.h> #include "config.h" @@ -91,8 +91,8 @@ time_t paste_time; char paste_title[STRLEN]; char paste_path[256]; int paste_level; -char currtitle[40] = "\0"; -char vetitle[40] = "\0"; +char currtitle[TTLEN + 1] = "\0"; +char vetitle[TTLEN + 1] = "\0"; char currowner[IDLEN + 2] = "\0"; char currauthor[IDLEN + 2] = "\0"; char currfile[FNLEN]; /* current file name @ bbs.c mail.c */ |