]> git.ipfire.org Git - pakfire.git/commitdiff
tests: util: Cast values for printing
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Oct 2024 13:24:05 +0000 (13:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 26 Oct 2024 13:24:05 +0000 (13:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/libpakfire/util.c

index 81da4cf67ed565b8aca6fb17c74ebfb65685b74e..8189392d665a76939504631857faae7743aee7cf 100644 (file)
@@ -70,7 +70,7 @@ static int test_base64(const struct test* t) {
        ASSERT_SUCCESS(pakfire_b64decode(t->ctx, &output, &length, base64));
 
        // Print the decoded data
-       printf("%.*s\n", length, output);
+       printf("%.*s\n", (int)length, (char*)output);
 
        // Check that we encoded the correct amount of data
        ASSERT_EQUALS(length, sizeof(data));