From 359ba8b7ef66a6b190e52dd2a4378cd702b4e7eb Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 28 Nov 2025 09:43:11 +0100 Subject: [PATCH] Warn usage of (v)sprintf Until all projects using this are reviewed, please keep this warning in place. Signed-off-by: Simon Rozman --- include/WinStd/Common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/WinStd/Common.h b/include/WinStd/Common.h index 92e721a1..9a377960 100644 --- a/include/WinStd/Common.h +++ b/include/WinStd/Common.h @@ -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 static int vsprintf(_Inout_ std::basic_string &str, _In_z_ _Printf_format_string_ const char *format, _In_ va_list arg) { @@ -290,6 +291,7 @@ static int vsprintf(_Inout_ std::basic_string &str, _In_z_ _ /// /// \returns Number of characters in result. /// +[[deprecated("Behavior of this function changed from append to assign. Please, review call usage.")]] template static int vsprintf(_Inout_ std::basic_string &str, _In_z_ _Printf_format_string_ const wchar_t *format, _In_ va_list arg) {