Fix the size calculation bugs while calling memset in secureresourceprovider.c
authorleechul <chuls.lee@samsung.com>
Tue, 22 Sep 2015 01:23:05 +0000 (10:23 +0900)
committerSachin Agrawal <sachin.agrawal@intel.com>
Mon, 28 Sep 2015 13:38:30 +0000 (13:38 +0000)
commitb75e79f2f9da1bf9f48c3598ea3a774fc9970c64
treea3d5eabbc252b019e987f7194bcab19672220ed8
parenta130d2ab1d1dc3ee8dd3bfab3f2b7d4ad77d8ad8
Fix the size calculation bugs while calling memset in secureresourceprovider.c

 1. Fix the 'sizeof(sizeof(...))' whiling calling memset().
 2. Change the 'OICMalloc + memset' to 'OICCalloc'.

Change-Id: Idbb14de5a3d4517bc55324f7a8a58d2079bf12e8
Signed-off-by: leechul <chuls.lee@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2897
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sachin Agrawal <sachin.agrawal@intel.com>
(cherry picked from commit b4a723f299b3ccf44f7bc047eff06bb29abbed93)
Reviewed-on: https://gerrit.iotivity.org/gerrit/3179
resource/csdk/security/provisioning/src/secureresourceprovider.c