aboutsummaryrefslogtreecommitdiff
path: root/src/shared/Log.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/Log.cpp')
-rw-r--r--src/shared/Log.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/Log.cpp b/src/shared/Log.cpp
index c456348bf10..705b34d3cc7 100644
--- a/src/shared/Log.cpp
+++ b/src/shared/Log.cpp
@@ -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");
}