diff --git a/libraries/fc/src/string.cpp b/libraries/fc/src/string.cpp index 0b7cb9f47d9..f7fd1a554e5 100644 --- a/libraries/fc/src/string.cpp +++ b/libraries/fc/src/string.cpp @@ -93,7 +93,7 @@ namespace fc { { try { - return boost::lexical_cast(i.c_str()); + return boost::lexical_cast(i.c_str(), i.size()); } catch( const boost::bad_lexical_cast& e ) { @@ -106,7 +106,7 @@ namespace fc { { try { try { - return boost::lexical_cast(i.c_str()); + return boost::lexical_cast(i.c_str(), i.size()); } catch( const boost::bad_lexical_cast& e ) { @@ -119,7 +119,7 @@ namespace fc { { try { - return boost::lexical_cast(i.c_str()); + return boost::lexical_cast(i.c_str(), i.size()); } catch( const boost::bad_lexical_cast& e ) {