From 4bf18b089e1bb1f3ab513cbdf6674bd1074f4621 Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Wed, 12 Feb 2020 12:33:37 -0500 Subject: Replace use of boost::trim_right with locale-independent TrimString Note the only use of readStdin is fed to DecodeHexTx, which fails in IsHex on non-hex characters as recorded in p_util_hexdigit. --- src/bitcoin-tx.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/bitcoin-tx.cpp b/src/bitcoin-tx.cpp index cd2cdf01f2..58c51bd8e0 100644 --- a/src/bitcoin-tx.cpp +++ b/src/bitcoin-tx.cpp @@ -772,9 +772,7 @@ static std::string readStdin() if (ferror(stdin)) throw std::runtime_error("error reading stdin"); - boost::algorithm::trim_right(ret); - - return ret; + return TrimString(ret); } static int CommandLineRawTx(int argc, char* argv[]) -- cgit v1.2.3