CRT: vsprintf_s calling wrong function
GetProcAddress was loading vprintf_s rather than vsprintf_s,
causing random garbare to be printed. Fix the typo.
(cherry picked from commit 997530348ab86862bc7627adc6482e56a93f9a50)
Signed-off-by: Jonathan Yong <10walls@gmail.com>
diff --git a/mingw-w64-crt/secapi/vsprintf_s.c b/mingw-w64-crt/secapi/vsprintf_s.c
index 9e82bda..47486e3 100644
--- a/mingw-w64-crt/secapi/vsprintf_s.c
+++ b/mingw-w64-crt/secapi/vsprintf_s.c
@@ -19,7 +19,7 @@
if (f == _stub)
{
f = (int __cdecl (*)(char *, size_t, const char *, va_list))
- GetProcAddress (__mingw_get_msvcrt_handle (), "vprintf_s");
+ GetProcAddress (__mingw_get_msvcrt_handle (), "vsprintf_s");
if (!f)
f = _int_vsprintf_s;
__MINGW_IMP_SYMBOL(vsprintf_s) = f;