summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-26 20:10:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-26 20:10:53 +0000
commitb86a95c7016748add7d0a746b4dc6b2a4e3ddc43 (patch)
tree47a74f7a1a65ff492a3510802deec24acd875b04 /src/configreader.cpp
parentb4f3cb5c4b25be311952216fab1c66007a9691e7 (diff)
This should do it
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7158 e03df62e-2008-0410-955e-edbf42e46eb7
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];