aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_suite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_suite.cpp')
-rw-r--r--test/test_suite.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_suite.cpp b/test/test_suite.cpp
index bcddd4f..100b59f 100644
--- a/test/test_suite.cpp
+++ b/test/test_suite.cpp
@@ -69,7 +69,8 @@ TEST_CASE("fctprintf", "[]" ) {
printf_idx = 0U;
memset(printf_buffer, 0xCC, 100U);
test::fctprintf(&_out_fct, nullptr, "This is a test of %X", 0x12EFU);
- REQUIRE(!strcmp(printf_buffer, "This is a test of 12EF"));
+ REQUIRE(!strncmp(printf_buffer, "This is a test of 12EF", 22U));
+ REQUIRE(printf_buffer[22] == (char)0xCC);
}