1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

(gpgsm_get_certid): Cast printf arg to unsigned.

Bug accidently introduced while solving the #$%^& gcc
signed/unsigned char* warnings.
This commit is contained in:
Werner Koch 2005-07-19 11:23:02 +00:00
parent 53a1347fbe
commit 8889f4a2ee
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2005-07-19 Werner Koch <wk@g10code.com>
* fingerprint.c (gpgsm_get_certid): Cast printf arg to unsigned.
Bug accidently introduced while solving the #$%^& gcc
signed/unsigned char* warnings.
2005-06-15 Werner Koch <wk@g10code.com>
* delete.c (delete_one): Changed FPR to unsigned.

View File

@ -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)