Fixed incorrect length returned from snprintf on MSVC when the printed string did not fit in the supplied buffer.
Fixed incorrect length returned from snprintf on MSVC when the printed string did not fit in the supplied buffer.

nihildeb/hme,nihildeb/hme,nihildeb/hme,nihildeb/hme,nihildeb/hme,nihildeb/hme