[pkg-opensc-commit] [libp11] 11/27: Fixed a bug in printing hex values
Eric Dorland
eric at moszumanska.debian.org
Mon Aug 7 19:48:08 UTC 2017
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository libp11.
commit a5e51fb633001c2a18aa261551520c83326b128e
Author: Michał Trojnara <Michal.Trojnara at stunnel.org>
Date: Wed Jun 7 18:26:10 2017 +0200
Fixed a bug in printing hex values
---
NEWS | 1 +
src/eng_back.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/NEWS b/NEWS
index 75ce4e2..42ceaac 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,7 @@ NEWS for Libp11 -- History of user visible changes
New in 0.4.7; unreleased
* Added FORCE_LOGIN engine ctrl command (Michał Trojnara)
+* Fixed a bug in printing hex values (Michał Trojnara)
New in 0.4.6; 2017-04-23; Michał Trojnara
* Updated ex_data on EVP_PKEYs after enumerating keys (Matt Hauck)
diff --git a/src/eng_back.c b/src/eng_back.c
index b5e0ec6..8ba0e13 100644
--- a/src/eng_back.c
+++ b/src/eng_back.c
@@ -85,7 +85,7 @@ static void dump_hex(ENGINE_CTX *ctx, int level,
size_t n;
for (n = 0; n < len; n++)
- ctx_log(ctx, level, "%02x", val[n]);
+ ctx_log(ctx, level, "%02x", (const unsigned char)val[n]);
}
/******************************************************************************/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/libp11.git
More information about the pkg-opensc-commit
mailing list