提交 dbaa069a 编写于 作者: E edelangh 提交者: Rich Salz

use OSSLzu instead of lu format for size_t display

CLA: trivial
Reviewed-by: NRichard Levitte <levitte@openssl.org>
Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2660)
上级 d7345822
......@@ -555,8 +555,8 @@ static char *shacrypt(const char *passwd, const char *magic, const char *salt)
OPENSSL_strlcat(out_buf, magic, sizeof out_buf);
OPENSSL_strlcat(out_buf, "$", sizeof out_buf);
if (rounds_custom) {
char tmp_buf[7 + 9 + 1]; /* "rounds=999999999" */
sprintf(tmp_buf, "rounds=%lu", rounds);
char tmp_buf[80]; /* "rounds=999999999" */
sprintf(tmp_buf, "rounds=%"OSSLzu, rounds);
OPENSSL_strlcat(out_buf, tmp_buf, sizeof out_buf);
OPENSSL_strlcat(out_buf, "$", sizeof out_buf);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册