Use buffer for freshContent
diff --git a/tests/test-encode-decode-data.cpp b/tests/test-encode-decode-data.cpp
index 559aa60..2a7ebd8 100644
--- a/tests/test-encode-decode-data.cpp
+++ b/tests/test-encode-decode-data.cpp
@@ -145,8 +145,8 @@
     dumpData(reDecodedData);
   
     Data freshData(Name("/ndn/abc"));
-    const char *freshContent = "SUCCESS!";
-    freshData.setContent((const unsigned char *)freshContent, strlen(freshContent));
+    const unsigned char freshContent[] = "SUCCESS!";
+    freshData.setContent(freshContent, sizeof(freshContent) - 1);
     
     KeyChain::defaultSign(freshData);
     cout << endl << "Freshly signed data:" << endl;