diff --git a/dm/dmtree/common/deviceinfo.c b/dm/dmtree/common/deviceinfo.c index fa37ab2..3bc4009 100644 --- a/dm/dmtree/common/deviceinfo.c +++ b/dm/dmtree/common/deviceinfo.c @@ -171,7 +171,7 @@ char *get_softwareversion() db_get_value_string("hw", "board", "iopVersion", &v); tmp = dmstrdup(v);// MEM WILL BE FREED IN DMMEMCLEAN - val = cut_fx(tmp, delimiter, 2); + val = cut_fx(tmp, delimiter, 1); return val; } diff --git a/dm/dmtree/upnp/upnp_deviceinfo.c b/dm/dmtree/upnp/upnp_deviceinfo.c index 20e26d9..9db456b 100755 --- a/dm/dmtree/upnp/upnp_deviceinfo.c +++ b/dm/dmtree/upnp/upnp_deviceinfo.c @@ -97,7 +97,7 @@ int upnp_deviceinfo_get_software_version(char *refparam, struct dmctx *ctx, void return 0; } tmp = dmstrdup(v);// MEM WILL BE FREED IN DMMEMCLEAN - *value = cut_fx(tmp, delimiter, 2); + *value = cut_fx(tmp, delimiter, 1); return 0; }