]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
This should do it
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 26 May 2007 20:10:53 +0000 (20:10 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Sat, 26 May 2007 20:10:53 +0000 (20:10 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7158 e03df62e-2008-0410-955e-edbf42e46eb7

src/configreader.cpp
win/inspircd_win32wrapper.h

index 1976baf37495ccccfd0e52e829611624b08d767f..2f484293ffbb6b0c792ce3a7ee4c87a120a19eef 100644 (file)
@@ -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];
 
index dc1157545c70398abd363646ecb640929fdf1ef8..c8075b9020313c54def8798bc65a6d1bbfc7a257 100644 (file)
@@ -25,6 +25,9 @@
 /* Make builds smaller, leaner and faster */\r
 #define VC_EXTRALEAN\r
 \r
+/* They just have to be *different*, don't they. */\r
+#define PATH_MAX MAX_PATH\r
+\r
 /* Begone shitty 'safe STL' warnings */\r
 #define _SCL_SECURE_NO_WARNINGS\r
 #define _CRT_SECURE_NO_WARNINGS\r