Clients: Fix config files truncating options after the first space.

Closes #2059. Thanks to Jason White.
This commit is contained in:
Roger A. Light 2021-02-03 10:11:44 +00:00
parent f7dcd83572
commit 6c2dca51c3
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,9 @@
Broker:
- Fix exporting of executable symbols on BSD when building via makefile.
Clients:
- Fix config files truncating options after the first space. Closes #2059.
Build:
- Fix man page building to not absolutely require xsltproc when using CMake.
This now handles the case where we are building from the released tar, or

View File

@ -357,7 +357,7 @@ int client_config_load(struct mosq_config *cfg, int pub_or_sub, int argc, char *
* program name as the first entry. */
args[1] = strtok(line, " ");
if(args[1]){
args[2] = strtok(NULL, " ");
args[2] = strtok(NULL, "");
if(args[2]){
count = 3;
}else{