Updated Address max size 99/5899/2
authorRandeep Singh <randeep.s@samsung.com>
Fri, 4 Mar 2016 07:07:26 +0000 (12:37 +0530)
committerRandeep Singh <randeep.s@samsung.com>
Tue, 15 Mar 2016 05:56:56 +0000 (05:56 +0000)
Max array of size 40 is not adequate for storing address ipv6 address.
Thus increased the value from 40 to 56.

Change-Id: Icd63c11365cefc2576043c87ef54802b5028c971
Signed-off-by: Randeep Singh <randeep.s@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5411
Reviewed-by: Ashwini Kumar <k.ashwini@samsung.com>
Reviewed-by: Chul Lee <chuls.lee@samsung.com>
Reviewed-by: Junghyun Oh <junghyun.oh@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
(cherry picked from commit 0185651214559e46eea4bc357332c296856789e5)
Reviewed-on: https://gerrit.iotivity.org/gerrit/5899

resource/csdk/stack/include/octypes.h

index 16805a6..fc162c1 100644 (file)
@@ -275,7 +275,8 @@ extern "C" {
 #ifdef RA_ADAPTER
 #define MAX_ADDR_STR_SIZE (256)
 #else
-#define MAX_ADDR_STR_SIZE (40)
+/** Max Address could be "coaps://[xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]:xxxxx */
+#define MAX_ADDR_STR_SIZE (56)
 #endif
 
 /** Max identity size. */