EmulatorPkg/Win/Host: Use safe function _vsnprintf_s()

Update SecPrint() to use _vsnprintf_s() instead of
_vsnprintf() that is a safe function and allows the
defines _CRT_SECURE_NO_WARNINGS and _CRT_SECURE_NO_DEPRECATE
to be removed from WinHost builds.

Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
Michael D Kinney 2025-01-03 22:37:04 -08:00 committed by mergify[bot]
parent 4218026bd6
commit 3c8f47bf21
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ SecPrint (
va_start (Marker, Format);
_vsnprintf (Buffer, sizeof (Buffer), Format, Marker);
_vsnprintf_s (Buffer, sizeof (Buffer), sizeof (Buffer) - 1, Format, Marker);
va_end (Marker);