1
0
mirror of https://github.com/alliedmodders/metamod-source.git synced 2025-01-19 08:52:34 +01:00

Fixed passage of non-literals as error and warning format strings (r=DS).

This commit is contained in:
Nicholas Hastings 2012-05-26 17:46:02 -04:00
parent ff5c8d1af6
commit fb73ddece1

View File

@ -283,7 +283,7 @@ void BaseProvider::DisplayError(const char *fmt, ...)
UTIL_FormatArgs(buffer, sizeof(buffer), fmt, ap);
va_end(ap);
Error(buffer);
Error("%s", buffer);
}
void BaseProvider::DisplayWarning(const char *fmt, ...)
@ -295,7 +295,7 @@ void BaseProvider::DisplayWarning(const char *fmt, ...)
UTIL_FormatArgs(buffer, sizeof(buffer), fmt, ap);
va_end(ap);
Warning(buffer);
Warning("%s", buffer);
}
IConCommandBaseAccessor *BaseProvider::GetConCommandBaseAccessor()