Byte arrays are not zero-terminated.
authorDan Mihai <Daniel.Mihai@microsoft.com>
Wed, 23 Aug 2017 20:23:44 +0000 (13:23 -0700)
committerRandeep Singh <randeep.s@samsung.com>
Fri, 25 Aug 2017 07:11:36 +0000 (07:11 +0000)
Change-Id: I03413c8fc86f871a1609920e2f0ec6e6e6c43455
Signed-off-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Bug: https://jira.iotivity.org/browse/IOT-2647
Reviewed-on: https://gerrit.iotivity.org/gerrit/22035
Reviewed-by: Nathan Heldt-Sheller <nathan.heldt-sheller@intel.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
resource/csdk/security/include/internal/crl_logging.h

index eb6eb8a..d88793b 100644 (file)
@@ -45,7 +45,7 @@ INLINE_API void printCRL(LogLevel level, const OicSecCrl_t *crl)
 
     OIC_LOG(level, CRL_TAG, "CRL object contains:");
     OIC_LOG_V(level, CRL_TAG, "id = %d", crl->CrlId);
-    OIC_LOG_V(level, CRL_TAG, "this update = %s", crl->ThisUpdate.data);
+    OIC_LOG_BUFFER(level, CRL_TAG, crl->ThisUpdate.data, crl->ThisUpdate.len);
 
     OIC_LOG(level, CRL_TAG, "crl:");
     OIC_LOG_V(level, CRL_TAG, "encoding = %d", crl->CrlData.encoding);