From 645f6580e07afc9f2acaa7f3ef9141a1acde93d1 Mon Sep 17 00:00:00 2001 From: Helge Norberg Date: Thu, 19 Nov 2015 12:41:19 +0100 Subject: [PATCH] Fixed bug in \r\n delimiter handling in protocol code --- protocol/util/strategy_adapters.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/util/strategy_adapters.h b/protocol/util/strategy_adapters.h index 22aad3d6f..56d35fedf 100644 --- a/protocol/util/strategy_adapters.h +++ b/protocol/util/strategy_adapters.h @@ -77,7 +77,7 @@ public: //boost::iter_split(split, input_, boost::algorithm::first_finder(delimiter_)) was painfully slow in debug-build - auto delim_pos = input_.find_first_of(delimiter_); + auto delim_pos = input_.find(delimiter_); while(delim_pos != std::string::npos) { strategy_->parse(input_.substr(0, delim_pos)); -- 2.39.2