mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-13 21:49:49 +01:00
*Update to Mangos 6849. Source: Mangos.
--HG-- branch : trunk
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user