summaryrefslogtreecommitdiffstats
path: root/apps/passwd.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2005-06-29 11:02:15 +0000
committerBen Laurie <ben@openssl.org>2005-06-29 11:02:15 +0000
commita51a97262de196f8d4940fe68d9412ec99cd555a (patch)
tree56a8e1c194e5755f5cac06e8ab9cff1173a332cf /apps/passwd.c
parent45d8574b93e9f1e14c62b765220b370f7c37eaa3 (diff)
Brought forward from 0.9.8 - 64 bit warning fixes and fussy compiler fixes.
Diffstat (limited to 'apps/passwd.c')
-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);