diff --git a/dmtree/tr181/dynamicdns.c b/dmtree/tr181/dynamicdns.c index 2ae9affa..9e481c63 100644 --- a/dmtree/tr181/dynamicdns.c +++ b/dmtree/tr181/dynamicdns.c @@ -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 {