Fix vsnprintf error in MSVC++

Fixing #242.  @fabio-angie, would you like to review?