Use vsnprintf_s over vsprintf_s, make char buffer big enough. Closes #64