From f18dd687c847c221fa8d610e5e9dbadcc8e5a73d Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Tue, 28 Jun 2005 13:07:46 +0000 Subject: [PATCH] Nasty fix for another warning, but all I have the patience for right now. --- apps/passwd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/passwd.c b/apps/passwd.c index 6965c6e090..9ca25dd1da 100644 --- a/apps/passwd.c +++ b/apps/passwd.c @@ -474,7 +474,8 @@ static int do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p, if ((strlen(passwd) > pw_maxlen)) { if (!quiet) - BIO_printf(bio_err, "Warning: truncating password to %u characters\n", pw_maxlen); + /* XXX: really we should know how to print a size_t, not cast it */ + BIO_printf(bio_err, "Warning: truncating password to %u characters\n", (unsigned)pw_maxlen); passwd[pw_maxlen] = 0; } assert(strlen(passwd) <= pw_maxlen); -- 2.50.1