[pkg-opensc-commit] [opensc] 174/295: pkcs15-tool: cast size_t to unsigned long (fix #965) (#966)

Eric Dorland eric at moszumanska.debian.org
Sat Jun 24 21:11:28 UTC 2017


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch master
in repository opensc.

commit f1f96a6b40ccb5046d956de480db7483c9be12c9
Author: Nuno Goncalves <nunojpg at gmail.com>
Date:   Sun Feb 12 22:47:11 2017 +0100

    pkcs15-tool: cast size_t to unsigned long (fix #965) (#966)
    
    Signed-off-by: Nuno Goncalves <nunojpg at gmail.com>
---
 src/tools/pkcs15-tool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tools/pkcs15-tool.c b/src/tools/pkcs15-tool.c
index 7c4c168..092b9d9 100644
--- a/src/tools/pkcs15-tool.c
+++ b/src/tools/pkcs15-tool.c
@@ -530,7 +530,7 @@ static int list_data_objects(void)
 					return 1;
 				}
 				sc_pkcs15_free_data_object(data_object);
-				printf("  Size:%5lu", cinfo->data.len);
+				printf("  Size:%5lu", (unsigned long) cinfo->data.len);
 			} else {
 				printf("  AuthID:%-3s", sc_pkcs15_print_id(&objs[i]->auth_id));
 			}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opensc/opensc.git



More information about the pkg-opensc-commit mailing list