From 6895b969ca469ddd649f8a1b11660c50f413e175 Mon Sep 17 00:00:00 2001 From: Jaewook Jung Date: Wed, 20 Jul 2016 10:02:24 +0900 Subject: [PATCH] modifed MAX_ADDR_STR_SIZE value Change-Id: Ib7c5f074755a043fc9993a5f9067995fe31edb43 Signed-off-by: Jaewook Jung Reviewed-on: https://gerrit.iotivity.org/gerrit/9483 Tested-by: jenkins-iotivity Reviewed-by: Jon A. Cruz --- resource/csdk/connectivity/api/cacommon.h | 6 +++--- resource/csdk/stack/include/octypes.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/resource/csdk/connectivity/api/cacommon.h b/resource/csdk/connectivity/api/cacommon.h index 58f8744..d9c2c47 100644 --- a/resource/csdk/connectivity/api/cacommon.h +++ b/resource/csdk/connectivity/api/cacommon.h @@ -155,12 +155,12 @@ typedef int CASocketFd_t; #define MAX_ADDR_STR_SIZE_CA (256) #else /* - * Max Address could be "coap+tcp://[xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:yyy.yyy.yyy.yyy]:xxxxx" - * Which is 64, +1 for null terminator => 65 + * Max Address could be "coaps+tcp://[xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:yyy.yyy.yyy.yyy]:xxxxx" + * Which is 65, +1 for null terminator => 66 * OCDevAddr (defined in OCTypes.h) must be the same * as CAEndpoint_t (defined here) */ -#define MAX_ADDR_STR_SIZE_CA (65) +#define MAX_ADDR_STR_SIZE_CA (66) #endif typedef enum diff --git a/resource/csdk/stack/include/octypes.h b/resource/csdk/stack/include/octypes.h index 84983fd..365b75c 100644 --- a/resource/csdk/stack/include/octypes.h +++ b/resource/csdk/stack/include/octypes.h @@ -285,10 +285,10 @@ extern "C" { #define MAX_ADDR_STR_SIZE (256) #else /** Max Address could be - * "coap+tcp://[xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:yyy.yyy.yyy.yyy]:xxxxx" + * "coaps+tcp://[xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:yyy.yyy.yyy.yyy]:xxxxx" * +1 for null terminator. */ -#define MAX_ADDR_STR_SIZE (65) +#define MAX_ADDR_STR_SIZE (66) #endif /** Length of MAC address */ -- 2.7.4