sprintf_s instead of _snprintf on Windows