Fixed the Log altogether (doesn't use NULL-to-va_list assignment, compiles for RaspberryPi)
git-svn-id: http://mc-server.googlecode.com/svn/trunk@432 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -98,15 +98,7 @@ void cLog::ClearLog()
|
||||
void cLog::Log(const char * a_Format, va_list argList)
|
||||
{
|
||||
AString Message;
|
||||
if (argList != NULL)
|
||||
{
|
||||
AppendVPrintf(Message, a_Format, argList);
|
||||
}
|
||||
else
|
||||
{
|
||||
// This branch needs to be here because of *nix crashing in vsnprintf() when argList is NULL
|
||||
Message.assign(a_Format);
|
||||
}
|
||||
AppendVPrintf(Message, a_Format, argList);
|
||||
|
||||
time_t rawtime;
|
||||
time ( &rawtime );
|
||||
|
||||
Reference in New Issue
Block a user