Fixed bug in SRMIsSecurityResourceURI()
authorvimala.v <vimala.v@samsung.com>
Mon, 21 Sep 2015 13:24:22 +0000 (18:54 +0530)
committerMadan Lanka <lanka.madan@samsung.com>
Tue, 22 Sep 2015 03:53:27 +0000 (03:53 +0000)
commita4a56627846561fd75abaad2684dd350a36664a0
treea990aa495c3a002e02d39f7ff944103d8e386c8d
parent71ad1b6bd012e0551f4f2a496606aa222182b22a
Fixed bug in SRMIsSecurityResourceURI()

SRMIsSecurityResourceURI() API was returning "TRUE" for all resources with
URI starting with "/oic".  sizeof() char * is always 4.  Changed to strlen().

Change-Id: I2287ee29c677bf7229a80779fa150c73abb7db19
Signed-off-by: vimala.v <vimala.v@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2863
Reviewed-by: Abhishek Pandey <abhi.siso@samsung.com>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Madan Lanka <lanka.madan@samsung.com>
(cherry picked from commit 99cddf54412d34f7bb683041d7ef7a319011436f)
Reviewed-on: https://gerrit.iotivity.org/gerrit/2889
resource/csdk/security/src/secureresourcemanager.c