From 2d8ee1c78013c104374613d064565aa7e14c4f2a Mon Sep 17 00:00:00 2001 From: piaip Date: Thu, 21 Apr 2005 09:19:28 +0000 Subject: 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 --- mbbsd/edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mbbsd/edit.c') diff --git a/mbbsd/edit.c b/mbbsd/edit.c index 9e4ebc4d..8500c101 100644 --- a/mbbsd/edit.c +++ b/mbbsd/edit.c @@ -1054,7 +1054,7 @@ auto_backup(void) if (curr_buf->currline) { FILE *fp; textline_t *p, *v; - char bakfile[64]; + char bakfile[PATHLEN]; int count = 0; setuserfile(bakfile, fp_bak); -- cgit v1.2.3