From ee3c71b7e6ab3d423f0ab28925ab758501482a83 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 8 Jun 2022 20:21:17 +0100 Subject: [PATCH] [Minor] Fix parsing of the headers --- src/client/rspamc.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx index 0c4c2663f..bdcbb0d2d 100644 --- a/src/client/rspamc.cxx +++ b/src/client/rspamc.cxx @@ -703,8 +703,8 @@ add_options(GQueue *opts) } else { add_client_header(opts, - hdr_view.substr(0, std::distance(delim_pos, std::begin(hdr_view))), - hdr_view.substr(std::distance(delim_pos, std::begin(hdr_view) + 1))); + hdr_view.substr(0, std::distance(std::begin(hdr_view), delim_pos)), + hdr_view.substr(std::distance(std::begin(hdr_view), delim_pos) + 1)); } hdr++; -- 2.39.5