diff options
author | Andy Polyakov <appro@openssl.org> | 2017-03-29 23:10:08 +0200 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2017-03-30 19:33:32 +0200 |
commit | 74d9519a68ee484db584aebc6ab6b2cb4bf98b2a (patch) | |
tree | 1e13a01e1fff525120c3029ba71f2139e687df96 /crypto/bio | |
parent | 12557a3445acc2f53321a3806f0478b998edb9a8 (diff) |
bio/b_print.c: recognize even 'j' format modifier.
'j' is specified as modifier for "greatest-width integer type", which in
practice means 64 bits on both 32- and 64-bit platforms. Since we rely
on __attribute__((__format__(__printf__,...))) to sanitize BIO_print
format, we can use it to denote [u]int64_t-s in platform-neutral manner.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3083)
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/b_print.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/bio/b_print.c b/crypto/bio/b_print.c index 883af19388..79ae4a9c41 100644 --- a/crypto/bio/b_print.c +++ b/crypto/bio/b_print.c @@ -208,6 +208,7 @@ _dopr(char **sbuffer, ch = *format++; break; case 'q': + case 'j': cflags = DP_C_LLONG; ch = *format++; break; |