diff --git a/src/osgDB/FileUtils.cpp b/src/osgDB/FileUtils.cpp index 996898c4e..c7f00716e 100644 --- a/src/osgDB/FileUtils.cpp +++ b/src/osgDB/FileUtils.cpp @@ -41,6 +41,8 @@ inline static char* strdup(const char *src) #endif #endif +#define FILEUTILS_MAX_PATH_LENGTH 2048 + #if defined(WIN32) &&!defined(__CYGWIN__) char *PathDelimitor = ";"; static const char *s_default_file_path = ".;"; @@ -91,7 +93,7 @@ void osgDB::initFilePath( void ) void osgDB::setFilePath( const char *_path ) { - char buff[1024]; + char buff[FILEUTILS_MAX_PATH_LENGTH]; notify(DEBUG_INFO) << "In osgDB::setFilePath("<<_path<<")"<