23 lines
918 B
Diff
23 lines
918 B
Diff
From 313649452bacc8c076e1be466edb282a7482e5e0 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Bj=C3=B6rn=20Esser?= <besser82@fedoraproject.org>
|
|
Date: Mon, 24 Jun 2019 15:43:00 +0200
|
|
Subject: [PATCH] crypt-kat: Fix Wformat.
|
|
|
|
---
|
|
test/crypt-kat.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/test/crypt-kat.c b/test/crypt-kat.c
|
|
index 66a1fa2..985d27c 100644
|
|
--- a/test/crypt-kat.c
|
|
+++ b/test/crypt-kat.c
|
|
@@ -214,7 +214,7 @@ calc_hashes_crypt_r_rn (ARG_UNUSED (void *unused))
|
|
for (i = 0; i < ntests; i++)
|
|
{
|
|
strncpy(u.pass + 1, tests[i].input, CRYPT_MAX_PASSPHRASE_SIZE);
|
|
- printf("[%d]: %s %s\n", strlen(tests[i].input), tests[i].input, tests[i].salt);
|
|
+ printf("[%zu]: %s %s\n", strlen(tests[i].input), tests[i].input, tests[i].salt);
|
|
errno = 0;
|
|
hash = crypt_r (u.pass + 1, tests[i].salt, &data);
|
|
status |= report_result ("crypt_r", hash, errno, &tests[i],
|