diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-04-21 17:19:28 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-04-21 17:19:28 +0800 |
commit | 2d8ee1c78013c104374613d064565aa7e14c4f2a (patch) | |
tree | d4b4df26a1745ff0e82a6f752463e1f4f3bf6697 /mbbsd/fav.c | |
parent | a6162aedbc643514dccac3058888a81b63ea237d (diff) | |
download | pttbbs-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/fav.c')
-rw-r--r-- | mbbsd/fav.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mbbsd/fav.c b/mbbsd/fav.c index 4c47ca64..306f8d45 100644 --- a/mbbsd/fav.c +++ b/mbbsd/fav.c @@ -554,7 +554,7 @@ static void write_favrec(FILE *fwp, fav_t *fp) int fav_save(void) { FILE *fwp; - char buf[64], buf2[64]; + char buf[PATHLEN], buf2[PATHLEN]; fav_t *fp = get_fav_root(); #ifdef MEM_CHECK if (fav_memcheck() != MEM_CHECK) |