]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fix spacing of message
authorAlan T. DeKok <aland@freeradius.org>
Fri, 7 Mar 2025 15:06:22 +0000 (10:06 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 7 Mar 2025 15:43:07 +0000 (10:43 -0500)
src/bin/unit_test_attribute.c

index 3342e085229d8b8c1f6e7db4384ee28e240d2cdf..8a6e256def32517f8b93000e19c37e5d487cbdd0 100644 (file)
@@ -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;