From 31460e7f0d81e5e0e59972da4008464c89cce9b9 Mon Sep 17 00:00:00 2001 From: Alex Groce Date: Tue, 1 Jan 2019 16:58:31 -0700 Subject: [PATCH] Don't Pump through sizes, since the functions allow null terminators anyway --- examples/Runlen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/Runlen.cpp b/examples/Runlen.cpp index 70267b4..dcfe123 100644 --- a/examples/Runlen.cpp +++ b/examples/Runlen.cpp @@ -48,7 +48,7 @@ void printBytes(const char* bytes) { #define MAX_STR_LEN 3 TEST(Runlength, EncodeDecode) { - char* original = DeepState_CStrUpToLen(MAX_STR_LEN); + char* original = DeepState_CStr(MAX_STR_LEN); char* encoded = encode(original); char* roundtrip = decode(encoded); if (!(strncmp(roundtrip, original, MAX_STR_LEN) == 0)) {