diff --git a/include/boost/lexical_cast/detail/converter_lexical_streams.hpp b/include/boost/lexical_cast/detail/converter_lexical_streams.hpp index 158edac..17c6cf9 100644 --- a/include/boost/lexical_cast/detail/converter_lexical_streams.hpp +++ b/include/boost/lexical_cast/detail/converter_lexical_streams.hpp @@ -282,7 +282,7 @@ namespace boost { #if defined(_MSC_VER) && (_MSC_VER >= 1400) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) sprintf_s(begin, CharacterBufferSize, #else - snprintf(begin, CharacterBufferSize, + sprintf(begin, #endif "%.*g", static_cast(boost::detail::lcast_get_precision()), val_as_double); return finish > start; @@ -294,7 +294,7 @@ namespace boost { #if defined(_MSC_VER) && (_MSC_VER >= 1400) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) sprintf_s(begin, CharacterBufferSize, #else - snprintf(begin, CharacterBufferSize, + sprintf(begin, #endif "%.*g", static_cast(boost::detail::lcast_get_precision()), val); return finish > start; @@ -307,7 +307,7 @@ namespace boost { #if defined(_MSC_VER) && (_MSC_VER >= 1400) && !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) sprintf_s(begin, CharacterBufferSize, #else - snprintf(begin, CharacterBufferSize, + sprintf(begin, #endif "%.*Lg", static_cast(boost::detail::lcast_get_precision()), val ); return finish > start;