=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/passwd.c,v retrieving revision 1.10 retrieving revision 1.11 diff -c -r1.10 -r1.11 *** src/usr.bin/openssl/passwd.c 2019/07/14 03:30:46 1.10 --- src/usr.bin/openssl/passwd.c 2021/11/25 16:53:58 1.11 *************** *** 1,4 **** ! /* $OpenBSD: passwd.c,v 1.10 2019/07/14 03:30:46 guenther Exp $ */ #if defined OPENSSL_NO_MD5 #define NO_MD5CRYPT_1 --- 1,4 ---- ! /* $OpenBSD: passwd.c,v 1.11 2021/11/25 16:53:58 tb Exp $ */ #if defined OPENSSL_NO_MD5 #define NO_MD5CRYPT_1 *************** *** 449,459 **** /* truncate password if necessary */ if ((strlen(passwd) > pw_maxlen)) { if (!quiet) ! /* ! * 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); --- 449,457 ---- /* truncate password if necessary */ if ((strlen(passwd) > pw_maxlen)) { if (!quiet) ! BIO_printf(bio_err, ! "Warning: truncating password to %zu characters\n", ! pw_maxlen); passwd[pw_maxlen] = 0; } assert(strlen(passwd) <= pw_maxlen);