From a1ceee74416bf35e481b01a25e3ca6c186393d7e Mon Sep 17 00:00:00 2001 From: Omar Kallel Date: Wed, 18 Mar 2020 17:34:14 +0100 Subject: [PATCH] Fix returned value format of the parameter Device.DynamicDNS.SupportedServices --- dmtree/tr181/dynamicdns.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {