projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d734582
)
use OSSLzu instead of lu format for size_t display
author
edelangh
<edelangh@student.42.fr>
Fri, 17 Feb 2017 12:23:22 +0000
(13:23 +0100)
committer
Rich Salz
<rsalz@openssl.org>
Fri, 3 Mar 2017 13:04:47 +0000
(08:04 -0500)
CLA: trivial
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2660)
apps/passwd.c
patch
|
blob
|
history
diff --git
a/apps/passwd.c
b/apps/passwd.c
index 9be92843ea3c3d9faef7af35315657a822c4fbf8..5be728f7c029d9fbb0f3997fb2e33f9185a678ea 100644
(file)
--- a/
apps/passwd.c
+++ b/
apps/passwd.c
@@
-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);
}