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:
parent
ff5c8d1af6
commit
fb73ddece1
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user