summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2005-06-28 13:07:46 +0000
committerBen Laurie <ben@openssl.org>2005-06-28 13:07:46 +0000
commitf18dd687c847c221fa8d610e5e9dbadcc8e5a73d (patch)
tree69ce8d11a2be18e563bfece3062f8f2c294d6647 /apps
parent50d53766981c61c4d1059de12627d89ef52f6a24 (diff)
Nasty fix for another warning, but all I have the patience for right now.
Diffstat (limited to 'apps')
-rw-r--r--apps/passwd.c3
1 files changed, 2 insertions, 1 deletions
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);