diff options
-rw-r--r-- | src/configreader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 2f484293f..5ec60d1c3 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -1602,7 +1602,7 @@ bool ServerConfig::DirValid(const char* dirandfile) std::string ServerConfig::GetFullProgDir() { - char buffer[PATH_MAX]; + char buffer[PATH_MAX+1]; // Get the current working directory if (getcwd(buffer, PATH_MAX)) |