Fixing buffer overflow with cwd command (FILENAME_MAX must be at 50 +1 bytes)
This commit is contained in:
@@ -75,6 +75,8 @@ extern FILE* stderr;
|
||||
# define FILENAME_MAX (12+1)
|
||||
#elif defined(__LUNIX__)
|
||||
# define FILENAME_MAX (80+1)
|
||||
#elif defined(__TELESTRAT__)
|
||||
# define FILENAME_MAX (50+1)
|
||||
#else
|
||||
# define FILENAME_MAX (16+1)
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user