Skip to content

Commit

Permalink
z2_plus: Sync IPACM with upstream
Browse files Browse the repository at this point in the history
 * Tag: LA.UM.5.5.r1-02500-8x96.0

Change-Id: Ibb3d7542ee3369a752ad1a79a3b8324445d6649a
  • Loading branch information
bgcngm authored and dmd79 committed Jan 31, 2017
1 parent 4dbccc2 commit 4c0cac0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data-ipa-cfg-mgr/ipacm/src/IPACM_Config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ int IPACM_Config::AddNatIfaces(char *dev_name)

if (ipa_nat_iface_entries < ipa_num_ipa_interfaces)
{
memcpy(pNatIfaces[ipa_nat_iface_entries - 1].iface_name,
strlcpy(pNatIfaces[ipa_nat_iface_entries - 1].iface_name,
dev_name, IPA_IFACE_NAME_LEN);

IPACMDBG_H("Add Nat IfaceName: %s ,update nat-ifaces number: %d\n",
Expand Down
4 changes: 2 additions & 2 deletions data-ipa-cfg-mgr/ipacm/src/IPACM_Xml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ static int ipacm_cfg_xml_parse_tree
{
str_size = strlen(content);
memset(content_buf, 0, sizeof(content_buf));
memcpy(content_buf, (void *)content, str_size);
strlcpy(config->iface_config.iface_entries[config->iface_config.num_iface_entries - 1].iface_name, content_buf, str_size+1);
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);
}
}
Expand Down

0 comments on commit 4c0cac0

Please sign in to comment.