Fixing buffer overflow with cwd command (FILENAME_MAX must be at 50 +1 bytes)

This commit is contained in:
jede
2017-09-25 21:39:57 +02:00
parent 86741cb1dd
commit d8904c550b
4 changed files with 14 additions and 6 deletions

View File

@@ -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