*Update to Mangos 6849. Source: Mangos.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-11-26 14:23:50 -06:00
parent 925a013483
commit 0521e2d017
2 changed files with 4 additions and 2 deletions

View File

@@ -48,6 +48,7 @@
# define TRINITY_IMPORT __cdecl
# define TRINITY_SCRIPT_EXT ".dll"
# define TRINITY_SCRIPT_NAME "TrinityScript"
# define TRINITY_PATH_MAX MAX_PATH
#else //PLATFORM != PLATFORM_WINDOWS
# define TRINITY_LIBRARY_HANDLE void*
# define TRINITY_EXPORT export
@@ -61,6 +62,7 @@
# endif //__APPLE_CC__ && BIG_ENDIAN
# define TRINITY_SCRIPT_EXT ".so"
# define TRINITY_SCRIPT_NAME "libtrinityscript"
# define TRINITY_PATH_MAX PATH_MAX
#endif //PLATFORM
#if PLATFORM == PLATFORM_WINDOWS

View File

@@ -273,8 +273,8 @@ FILE* Log::openGmlogPerAccount(uint32 account)
if(m_gmlog_filename_format.empty())
return NULL;
char namebuf[200/*MAX_PATH*/];
snprintf(namebuf,200/*MAX_PATH*/,m_gmlog_filename_format.c_str(),account);
char namebuf[TRINITY_PATH_MAX];
snprintf(namebuf,TRINITY_PATH_MAX,m_gmlog_filename_format.c_str(),account);
return fopen(namebuf, "a");
}