From 2e027687bed47dff43c28e943c0d4c72854454b5 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Fri, 7 Mar 2025 10:06:22 -0500 Subject: [PATCH] fix spacing of message --- src/bin/unit_test_attribute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/unit_test_attribute.c b/src/bin/unit_test_attribute.c index 3342e08522..8a6e256def 100644 --- a/src/bin/unit_test_attribute.c +++ b/src/bin/unit_test_attribute.c @@ -364,7 +364,7 @@ static void mismatch_print(command_file_ctx_t *cc, char const *command, ERROR(" got : %.*s", (int) got_len, got); ERROR(" expected : %.*s", (int) expected_len, expected); - ERROR(" %s^ differs here (%zu)", spaces, e - expected); + ERROR(" %.*s^ differs here (%zu)", (int) (e - expected), spaces, e - expected); } else { size_t glen, elen; -- 2.47.2