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>
Wed, 23 Sep 2015 23:44:20 +0000 (23:44 +0000)
commitb4a723f299b3ccf44f7bc047eff06bb29abbed93
treedd4a7c289fc42b29fe69bfa848e53ba090dbaa1a
parentfcd6ddcf05f9a77c2b364afe1b13a9d22a6cb0a0
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>
resource/csdk/security/provisioning/src/secureresourceprovider.c