Warn usage of (v)sprintf
Some checks failed
CodeQL / Analyze (cpp) (push) Has been cancelled
Doxygen Action / build (push) Has been cancelled

Until all projects using this are reviewed, please keep this warning in
place.

Signed-off-by: Simon Rozman <simon.rozman@amebis.si>
This commit is contained in:
2025-11-28 09:43:11 +01:00
parent acf2419ef0
commit 359ba8b7ef

View File

@@ -252,6 +252,7 @@ inline SIZE_T SIZETAdd(SIZE_T a, SIZE_T b)
///
/// \returns Number of characters in result.
///
[[deprecated("Behavior of this function changed from append to assign. Please, review call usage.")]]
template<class _Traits, class _Ax>
static int vsprintf(_Inout_ std::basic_string<char, _Traits, _Ax> &str, _In_z_ _Printf_format_string_ const char *format, _In_ va_list arg)
{
@@ -290,6 +291,7 @@ static int vsprintf(_Inout_ std::basic_string<char, _Traits, _Ax> &str, _In_z_ _
///
/// \returns Number of characters in result.
///
[[deprecated("Behavior of this function changed from append to assign. Please, review call usage.")]]
template<class _Traits, class _Ax>
static int vsprintf(_Inout_ std::basic_string<wchar_t, _Traits, _Ax> &str, _In_z_ _Printf_format_string_ const wchar_t *format, _In_ va_list arg)
{