If user is enter the address for the unicast message,
we are parsing the input value in get_address_set() function.
I modified the get_address_set() function, because there are bugs
in this process. currently linux sample app code is not working.
Change-Id: Id0d0cfbabd2b91c4c18ec0ed28593495a2e2a75e
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2055
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
{
if(ipLen && ipLen < sizeof(outAddress->ipAddress))
{
- OICStrcpy(outAddress->ipAddress, sizeof(outAddress->ipAddress), pAddress);
+ OICStrcpyPartial(outAddress->ipAddress, sizeof(outAddress->ipAddress),
+ pAddress, ipLen);
}
else if (!ipLen && len < sizeof(outAddress->ipAddress))
{
- OICStrcpy(outAddress->ipAddress, sizeof(outAddress->ipAddress), pAddress);
+ OICStrcpyPartial(outAddress->ipAddress, sizeof(outAddress->ipAddress),
+ pAddress, len);
}
else
{