From 64bd89bb8e3a76dbd8fa00e253bedfee00b33dcf Mon Sep 17 00:00:00 2001 From: In-line Date: Fri, 24 Feb 2017 12:32:31 +0400 Subject: [PATCH] Remove temp buffer from Host_Status_Printf --- rehlds/engine/host_cmd.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rehlds/engine/host_cmd.cpp b/rehlds/engine/host_cmd.cpp index 8bfb1e3..10db224 100644 --- a/rehlds/engine/host_cmd.cpp +++ b/rehlds/engine/host_cmd.cpp @@ -518,8 +518,9 @@ void Host_Status_Printf(qboolean conprint, qboolean log, char *fmt, ...) { va_list argptr; char string[4096]; +#ifndef REHLDS_FIXES char szfile[260]; - +#endif va_start(argptr, fmt); vsprintf(string, fmt, argptr); va_end(argptr); @@ -531,8 +532,12 @@ void Host_Status_Printf(qboolean conprint, qboolean log, char *fmt, ...) if (log) { +#ifdef REHLDS_FIXES + COM_Log("status.log", "%s", string); +#else Q_snprintf(szfile, sizeof(szfile), "%s", "status.log"); COM_Log(szfile, "%s", string); +#endif } }