git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7158
e03df62e-2008-0410-955e-
edbf42e46eb7
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];
/* 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