bugfix: ignore space after last protocol argument

This commit is contained in:
2018-07-26 16:56:39 +02:00
parent 93db87cc07
commit 2cf0c017e2

View File

@ -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);