summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 1976baf37..2f484293f 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -1602,10 +1602,10 @@ bool ServerConfig::DirValid(const char* dirandfile)
std::string ServerConfig::GetFullProgDir()
{
- char buffer[1024];
+ char buffer[PATH_MAX];
// Get the current working directory
- if (getcwd(buffer, 1024))
+ if (getcwd(buffer, PATH_MAX))
{
std::string remainder = this->argv[0];