summaryrefslogtreecommitdiffstats
path: root/sm/fingerprint.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2005-07-19 13:23:02 +0200
committerWerner Koch <wk@gnupg.org>2005-07-19 13:23:02 +0200
commit8889f4a2eeec08c53eda7feb75e978df4d811eba (patch)
tree745e34d658a141de43e51f038e0d7fcb580db2ec /sm/fingerprint.c
parent2005-07-04 Marcus Brinkmann <marcus@g10code.de> (diff)
downloadgnupg2-8889f4a2eeec08c53eda7feb75e978df4d811eba.tar.xz
gnupg2-8889f4a2eeec08c53eda7feb75e978df4d811eba.zip
(gpgsm_get_certid): Cast printf arg to unsigned.
Bug accidently introduced while solving the #$%^& gcc signed/unsigned char* warnings.
Diffstat (limited to 'sm/fingerprint.c')
-rw-r--r--sm/fingerprint.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sm/fingerprint.c b/sm/fingerprint.c
index 9c3ab85db..9441483bf 100644
--- a/sm/fingerprint.c
+++ b/sm/fingerprint.c
@@ -318,7 +318,7 @@ gpgsm_get_certid (ksba_cert_t cert)
sprintf (endp, "%02X", hash[i]);
*endp++ = '.';
for (i=0; i < n; i++, endp += 2)
- sprintf (endp, "%02X", p[i]);
+ sprintf (endp, "%02X", ((unsigned char*)p)[i]);
*endp = 0;
xfree (serial);
@@ -328,5 +328,3 @@ gpgsm_get_certid (ksba_cert_t cert)
-
-