mirror of
https://github.com/rehlds/rehlds.git
synced 2025-01-01 01:25:38 +03:00
Remove temp buffer from Host_Status_Printf
This commit is contained in:
parent
9387422655
commit
64bd89bb8e
@ -518,8 +518,9 @@ void Host_Status_Printf(qboolean conprint, qboolean log, char *fmt, ...)
|
|||||||
{
|
{
|
||||||
va_list argptr;
|
va_list argptr;
|
||||||
char string[4096];
|
char string[4096];
|
||||||
|
#ifndef REHLDS_FIXES
|
||||||
char szfile[260];
|
char szfile[260];
|
||||||
|
#endif
|
||||||
va_start(argptr, fmt);
|
va_start(argptr, fmt);
|
||||||
vsprintf(string, fmt, argptr);
|
vsprintf(string, fmt, argptr);
|
||||||
va_end(argptr);
|
va_end(argptr);
|
||||||
@ -531,8 +532,12 @@ void Host_Status_Printf(qboolean conprint, qboolean log, char *fmt, ...)
|
|||||||
|
|
||||||
if (log)
|
if (log)
|
||||||
{
|
{
|
||||||
|
#ifdef REHLDS_FIXES
|
||||||
|
COM_Log("status.log", "%s", string);
|
||||||
|
#else
|
||||||
Q_snprintf(szfile, sizeof(szfile), "%s", "status.log");
|
Q_snprintf(szfile, sizeof(szfile), "%s", "status.log");
|
||||||
COM_Log(szfile, "%s", string);
|
COM_Log(szfile, "%s", string);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user