Revert "Use vsprintf_s instead of vsnprintf."

This reverts commit 160f14dd929e83cc74843bd4a6d2504fb131d46e.