(gpgsm_get_certid): Cast printf arg to unsigned.
authorWerner Koch <wk@gnupg.org>
Tue, 19 Jul 2005 11:23:02 +0000 (11:23 +0000)
committerWerner Koch <wk@gnupg.org>
Tue, 19 Jul 2005 11:23:02 +0000 (11:23 +0000)
Bug accidently introduced while solving the #$%^& gcc
signed/unsigned char* warnings.

sm/ChangeLog
sm/fingerprint.c

index d9f295e..f1eb49c 100644 (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.
index 9c3ab85..9441483 100644 (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)
 
 
 
-
-