From 2cf0c017e2a2cd1986edc3b124e092140dbac869 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Thu, 26 Jul 2018 16:56:39 +0200 Subject: [PATCH] bugfix: ignore space after last protocol argument --- src/StreamCore.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/StreamCore.cc b/src/StreamCore.cc index 02753e6..23ca673 100644 --- a/src/StreamCore.cc +++ b/src/StreamCore.cc @@ -207,6 +207,10 @@ parse(const char* filename, const char* _protocolname) return false; } protocolname.truncate(-1); // remove ')' + if (protocolname[-1] == ' ') + { + protocolname.truncate(-1); // remove trailing space + } } StreamProtocolParser::Protocol* protocol; protocol = StreamProtocolParser::getProtocol(filename, protocolname);