summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-12 19:47:52 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2008-06-12 19:47:52 +0000
commit1519698640ed3fb389b87bb9272f523f40745260 (patch)
treedf010d292756ab7059dcab42fe1a304ec8a8e8eb /src
parentb3e3b1f14e12b4b0a395ef8e2a4848f132e2c22b (diff)
Remove PATH_MAX because some retard removed it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9895 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/configreader.cpp4
1 files changed, 2 insertions, 2 deletions
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];