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 --- include/config.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/config.h b/include/config.h index 5b562c10..ec6b6f9c 100644 --- a/include/config.h +++ b/include/config.h @@ -97,6 +97,10 @@ #define MAXPATHLEN (256) #endif +#ifndef PATHLEN +#define PATHLEN (256) +#endif + #ifndef MAX_BOARD #define MAX_BOARD (8192) /* 最大開板個數 */ #endif -- cgit v1.2.3