shithub: openh264

Download patch

ref: 4a8f54d7679ad1f4dc58e5d621635920694a59ea
parent: 0ce42ffb895a063000b3e8763248650372c7e56e
author: Martin Storsjö <martin@martin.st>
date: Sun Jan 26 09:44:14 EST 2014

Use vsnprintf in the old MSVC version of WelsSnprintf as well

--- a/codec/common/crt_util_safe_x.cpp
+++ b/codec/common/crt_util_safe_x.cpp
@@ -124,7 +124,7 @@
 
   va_start (pArgPtr, kpFormat);
 
-  iRc = vsprintf (pBuffer, kpFormat, pArgPtr); //confirmed_safe_unsafe_usage
+  iRc = vsnprintf (pBuffer, iSizeOfBuffer, kpFormat, pArgPtr); //confirmed_safe_unsafe_usage
 
   va_end (pArgPtr);