From: Yamin S Al-mousa Date: Fri, 19 Sep 2014 17:56:47 +0000 (-0700) Subject: A fix for a bug reported by Omkar and Vijay: X-Git-Tag: 1.2.0+RC1~2226 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39c8b6817524a831eb323f66b15d0ec901359e73;p=platform%2Fupstream%2Fiotivity.git A fix for a bug reported by Omkar and Vijay: The check for required uri lenght should consider that it includes the uri and query. Change-Id: I1ca3e4709de02cb4f5217aba5133b8aa2bc4ee14 --- diff --git a/csdk/stack/src/ocstack.c b/csdk/stack/src/ocstack.c index c8cb91e..99111ef 100644 --- a/csdk/stack/src/ocstack.c +++ b/csdk/stack/src/ocstack.c @@ -362,7 +362,7 @@ OCStackResult OCDoResource(OCDoHandle *handle, OCMethod method, const char *requ goto exit; } - if(strlen(requiredUri) > MAX_URI_LENGTH) + if(strlen(requiredUri) > MAX_URI_LENGTH + MAX_QUERY_LENGTH) { result = OC_STACK_INVALID_PARAM; goto exit;