[git] Scute - branch, master, updated. scute-1.3.0-66-ge4bcc78
by NIIBE Yutaka
cvs at cvs.gnupg.org
Wed Nov 2 01:40:58 CET 2016
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "PKCS#11 token on top of gpg-agent".
The branch, master has been updated
via e4bcc781fe2280626d602d0d02702d03a9c2601a (commit)
from 26808262a25b64483346d51db56ea82a342a6fbe (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e4bcc781fe2280626d602d0d02702d03a9c2601a
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Wed Nov 2 09:34:30 2016 +0900
Fix formatting.
* src/agent.c (scute_agent_get_random): Use '%zu'.
--
'%lu' is wrong on some arch where size_t is unsigned int.
Since we use gpgrt_snprintf, we can depend on the '%z' feature.
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
diff --git a/src/agent.c b/src/agent.c
index 8fc48e0..75d4933 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -1331,7 +1331,7 @@ scute_agent_get_random (unsigned char *data, size_t len)
gpg_error_t err;
struct random_request request;
- snprintf (command, sizeof(command), "SCD RANDOM %lu", len);
+ snprintf (command, sizeof(command), "SCD RANDOM %zu", len);
request.buffer = data;
request.len = len;
-----------------------------------------------------------------------
Summary of changes:
src/agent.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
PKCS#11 token on top of gpg-agent
http://git.gnupg.org
More information about the Gnupg-commits
mailing list