bugfix: ignore space after last protocol argument
This commit is contained in:
@ -207,6 +207,10 @@ parse(const char* filename, const char* _protocolname)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
protocolname.truncate(-1); // remove ')'
|
protocolname.truncate(-1); // remove ')'
|
||||||
|
if (protocolname[-1] == ' ')
|
||||||
|
{
|
||||||
|
protocolname.truncate(-1); // remove trailing space
|
||||||
|
}
|
||||||
}
|
}
|
||||||
StreamProtocolParser::Protocol* protocol;
|
StreamProtocolParser::Protocol* protocol;
|
||||||
protocol = StreamProtocolParser::getProtocol(filename, protocolname);
|
protocol = StreamProtocolParser::getProtocol(filename, protocolname);
|
||||||
|
Reference in New Issue
Block a user