Fixes for strcat/strcpy implementation
authorErich Keane <erich.keane@intel.com>
Fri, 29 May 2015 20:39:40 +0000 (13:39 -0700)
committerErich Keane <erich.keane@intel.com>
Mon, 1 Jun 2015 20:26:15 +0000 (20:26 +0000)
commitb4a1c9ff378621591f797bee4e0a12301d486e0d
tree62c3cd3f4e6dec1e7a3c8f65973edb570a6f7a14
parent71baa13a54bbc5acb3dba2f890696291d466704b
Fixes for strcat/strcpy implementation

Jon Cruz suggested a number of ways of simplifying the Strcpy/StrCat
implementation, sot his contains them.  Additionally, the error
conditions are now run-time so as to be entirely run-time safe, rather
than asserts, which resulted in some nasty undefined behavio.

Change-Id: I175b0df37d822d2c95b22b6521dbfbedbe15797b
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1147
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
resource/csdk/connectivity/common/inc/oic_string.h
resource/csdk/connectivity/common/src/oic_string.c