From 8b1560def05cc39fc8b2d127a60a0c55b4b906c8 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 12 Feb 2015 22:48:28 +0000 Subject: [PATCH] Parse config strings as entire line. --- src/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index 3e892cbb..4de24ab4 100644 --- a/src/conf.c +++ b/src/conf.c @@ -1951,7 +1951,7 @@ static int _conf_parse_int(char **token, const char *name, int *value, char *sav static int _conf_parse_string(char **token, const char *name, char **value, char *saveptr) { - *token = strtok_r(NULL, " ", &saveptr); + *token = strtok_r(NULL, "", &saveptr); if(*token){ if(*value){ _mosquitto_log_printf(NULL, MOSQ_LOG_ERR, "Error: Duplicate %s value in configuration.", name);