Changed amx structure for compatibility

This commit is contained in:
David Anderson
2004-09-03 06:53:00 +00:00
parent 580b20e720
commit 37a5a38be5
3 changed files with 8 additions and 8 deletions

View File

@ -40,6 +40,10 @@
#endif
#include "amxmodx.h"
#ifndef __linux__
#define vsnprintf _vsnprintf
#endif
CLog::CLog()
{
m_LogType = 0;
@ -158,7 +162,7 @@ void CLog::Log(const char *fmt, ...)
va_list arglst;
va_start(arglst, fmt);
vsprintf(msg, fmt, arglst);
vsnprintf(msg, 3071, fmt, arglst);
va_end(arglst);
FILE *pF;
@ -203,7 +207,7 @@ void CLog::Log(const char *fmt, ...)
char msg[3072];
va_list arglst;
va_start(arglst, fmt);
vsprintf(msg, fmt, arglst);
vsnprintf(msg, 3071, fmt, arglst);
va_end(arglst);
ALERT(at_logged, "%s\n", msg);
}