X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fconfigreader.cpp;h=19f5cc21cd8df5cff0389890eb377689dbab68a9;hb=1519698640ed3fb389b87bb9272f523f40745260;hp=34b811600e1a339e73e2ff7e7b288526cbf9b7a1;hpb=b3e3b1f14e12b4b0a395ef8e2a4848f132e2c22b;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/configreader.cpp b/src/configreader.cpp index 34b811600..19f5cc21c 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -2071,7 +2071,7 @@ bool ServerConfig::DirValid(const char* dirandfile) std::string ServerConfig::GetFullProgDir() { - char buffer[PATH_MAX+1]; + char buffer[4096]; #ifdef WINDOWS /* Windows has specific api calls to get the exe path that never fail. * For once, windows has something of use, compared to the POSIX code @@ -2085,7 +2085,7 @@ std::string ServerConfig::GetFullProgDir() } #else // Get the current working directory - if (getcwd(buffer, PATH_MAX)) + if (getcwd(buffer, 4096)) { std::string remainder = this->argv[0];