Promotion of data.lnx.2.0-00104.
CRs Change ID Subject
--------------------------------------------------------------------------------------------------------------
1097784 I21cd63bd41e1e09e23aceb2c666ea7fb5aa716f9 ipacm: Fix KW issues
Change-Id: I1189b5b2e7ab14e6ea28cb2f5e06da561d524fb8
CRs-Fixed: 1097784
diff --git a/ipacm/src/IPACM_Xml.cpp b/ipacm/src/IPACM_Xml.cpp
index 6b19639..120a638 100644
--- a/ipacm/src/IPACM_Xml.cpp
+++ b/ipacm/src/IPACM_Xml.cpp
@@ -267,7 +267,7 @@
{
str_size = strlen(content);
memset(content_buf, 0, sizeof(content_buf));
- memcpy(content_buf, (void *)content, str_size);
+ strlcpy(content_buf, content, MAX_XML_STR_LEN);
strlcpy(config->iface_config.iface_entries[config->iface_config.num_iface_entries - 1].iface_name, content_buf, IPA_IFACE_NAME_LEN);
IPACMDBG_H("Name %s\n", config->iface_config.iface_entries[config->iface_config.num_iface_entries - 1].iface_name);
}