From b86a95c7016748add7d0a746b4dc6b2a4e3ddc43 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 26 May 2007 20:10:53 +0000 Subject: This should do it git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7158 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/configreader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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]; -- cgit v1.2.3