]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
scripts: Use correct type for length when printing `count` for KEM KATs
authorTobias Brunner <tobias@strongswan.org>
Mon, 25 Nov 2024 15:56:53 +0000 (16:56 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 27 Nov 2024 09:12:56 +0000 (10:12 +0100)
scripts/nist_kem_kat.c

index e80436132c4e1e9dc5d1052e86bde86fef22ddea..31370e8ae96b7e1ba836c7d9bc5d35c558139d23 100644 (file)
@@ -140,7 +140,7 @@ int main(int argc, char *argv[])
                        {
                                break;
                        }
-                       fprintf(out, "/** count = %.*s */\n", value_len, value);
+                       fprintf(out, "/** count = %.*s */\n", (int)value_len, value);
                        fprintf(out, "{\n");
                        fprintf(out, "\t.method = %s,\n", method);
                        count--;