Fix returned value format of the parameter Device.DynamicDNS.SupportedServices

This commit is contained in:
Omar Kallel 2020-03-18 17:34:14 +01:00
parent 37992a5bc9
commit a1ceee7441

View file

@ -316,8 +316,8 @@ static int get_DynamicDNS_SupportedServices(char *refparam, struct dmctx *ctx, v
continue;
pch = strtok_r(line, "\t", &spch);
remove_substring(pch, "\"");
remove_substring(pch, " ");
pch= strstr(pch, "\"")+1;
pch[strchr(pch, '\"')-pch]=0;
if (strcmp(buf, "") == 0) {
snprintf(buf, sizeof(buf), "%s", pch);
} else {