Resolve potential buffer overflow warning
Resolve potential buffer overflow warning

Compiler warning generated because the value of the size argument in
'strncat' is too large.

Also, IF check was not accounting for DELIMTER size, which
could cause overflow.

Change-Id: Iee3724bb08d8254f7a99f84ec1571eeeb5974d22
Signed-off-by: Charlie Lenahan <5465da70c31cabbb269c3fd3f42e9ac10a2fdf2d@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/678
Tested-by: jenkins-iotivity <09cb29e8a2b473a2c978382eec13ee06fa017bda@opendaylight.org>
Reviewed-by: Mandeep Shetty <9576c34ab780cbbd29c2639a47eb90b07da66bfe@intel.com>
Reviewed-by: Erich Keane <ec9f61fe526c14bb62c55d7c978f025ee6b3583d@intel.com>

iotivity/iotivity,iotivity/iotivity,santais/iotivity_1.1,kartben/iotivity,santais/iotivity_1.1.0,rzr/iotivity,WojciechLuczkow/iotivity,santais/iotivity,santais/iotivity_1.1.0,iotivity/iotivity,rzr/iotivity,kartben/iotivity,tienfuc/iotivity-democlient-snap,rzr/iotivity,santais/iotivity_1.1,iotivity/iotivity,rzr/iotivity,santais/iotivity_1.1,tienfuc/iotivity-democlient-snap,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1,WojciechLuczkow/iotivity,santais/iotivity_1.1.0,santais/iotivity_1.1.0,rzr/iotivity,santais/iotivity_1.1.0,rzr/iotivity,santais/iotivity_1.1,santais/iotivity,iotivity/iotivity,kartben/iotivity,santais/iotivity,rzr/iotivity,kartben/iotivity,tienfuc/iotivity-democlient-snap,santais/iotivity,WojciechLuczkow/iotivity,kartben/iotivity,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,iotivity/iotivity,WojciechLuczkow/iotivity,santais/iotivity,tienfuc/iotivity-democlient-snap,santais/iotivity,santais/iotivity_1.1,kartben/iotivity,tienfuc/iotivity-democlient-snap,iotivity/iotivity,santais/iotivity_1.1,tienfuc/iotivity-democlient-snap,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1.0,santais/iotivity_1.1.0,tienfuc/iotivity-democlient-snap,kartben/iotivity,WojciechLuczkow/iotivity,kartben/iotivity,iotivity/iotivity,WojciechLuczkow/iotivity,santais/iotivity_1.1,WojciechLuczkow/iotivity,santais/iotivity