From 96fdae92d3cc89c36880a3b8f91488a8bcf3dfc6 Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Thu, 21 Sep 2017 10:17:21 -0500 Subject: [PATCH] Modify to_[u]int64, to_double to eval entire string #148 --- libraries/fc/src/string.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ) {