We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb8c104 commit c52e2d6Copy full SHA for c52e2d6
clients/jack_client.cpp
@@ -226,8 +226,9 @@ void cliThreadProc()
226
227
std::string command;
228
std::getline(std::cin, command);
229
- std::size_t pos = command.find(" ");
230
- std::string kw = command.substr(0, pos);
+ std::size_t start = command.length()? command.find_first_not_of(" "): 0;
+ std::size_t pos = command.find(" ", start);
231
+ std::string kw = command.substr(start, pos - start);
232
std::string args = command.substr(pos + 1);
233
std::vector<std::string> tokens = stringTokenize(args);
234
0 commit comments