Don't Pump through sizes, since the functions allow null terminators anyway

This commit is contained in:
Alex Groce
2019-01-01 16:58:31 -07:00
committed by GitHub
parent 9ef6c5ea32
commit 31460e7f0d
+1 -1
View File
@@ -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)) {