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 00:43:34 +0000 (00:43 +0000)
commit99cddf54412d34f7bb683041d7ef7a319011436f
treea990aa495c3a002e02d39f7ff944103d8e386c8d
parentd06d8bfc5bbb9ce319de7cb98a2478f6cf831187
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>
resource/csdk/security/src/secureresourcemanager.c