TEST: Add new serializer and deserializer test
[openssl.git] / test / testutil / format_output.c
index 069a6a03a539f5e6b32de8ca4bf902cee39d562d..e2ee98cfd80283a44e54731afe2a287c4f28cc3c 100644 (file)
@@ -65,7 +65,7 @@ static void test_fail_string_common(const char *prefix, const char *file,
         goto fin;
     }
 
-    if (l1 != l2 || strcmp(m1, m2) != 0)
+    if (l1 != l2 || strncmp(m1, m2, l1) != 0)
         test_diff_header(left, right);
 
     while (l1 > 0 || l2 > 0) {