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

Closes #2059. Thanks to Jason White.
release/1.6
Roger A. Light 5 years ago
parent 628c5d5aae
commit 6413840b2f

@ -19,6 +19,7 @@ Client library:
Clients:
- mosquitto_sub will now quit with an error if the %U option is used on
Windows, rather than just quitting. Closes #1908.
- Fix config files truncating options after the first space. Closes #2059.
Apps:
- Perform stricter parsing of input username in mosquitto_passwd. Closes

@ -299,7 +299,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{

Loading…
Cancel
Save