diff options
author | Ben Laurie <ben@openssl.org> | 2005-06-28 13:07:46 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2005-06-28 13:07:46 +0000 |
commit | f18dd687c847c221fa8d610e5e9dbadcc8e5a73d (patch) | |
tree | 69ce8d11a2be18e563bfece3062f8f2c294d6647 /apps | |
parent | 50d53766981c61c4d1059de12627d89ef52f6a24 (diff) |
Nasty fix for another warning, but all I have the patience for right now.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/passwd.c | 3 |
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); |