GNUPG-1-9-BRANCH gnupg/sm (ChangeLog fingerprint.c)
cvs user wk
cvs at cvs.gnupg.org
Tue Jul 19 12:57:11 CEST 2005
Date: Tuesday, July 19, 2005 @ 13:23:02
Author: wk
Path: /cvs/gnupg/gnupg/sm
Tag: GNUPG-1-9-BRANCH
Modified: ChangeLog fingerprint.c
(gpgsm_get_certid): Cast printf arg to unsigned.
Bug accidently introduced while solving the #$%^& gcc
signed/unsigned char* warnings.
---------------+
ChangeLog | 6 ++++++
fingerprint.c | 4 +---
2 files changed, 7 insertions(+), 3 deletions(-)
Index: gnupg/sm/ChangeLog
diff -u gnupg/sm/ChangeLog:1.101.2.96 gnupg/sm/ChangeLog:1.101.2.97
--- gnupg/sm/ChangeLog:1.101.2.96 Thu Jun 16 10:11:59 2005
+++ gnupg/sm/ChangeLog Tue Jul 19 13:23:02 2005
@@ -1,3 +1,9 @@
+2005-07-19 Werner Koch <wk at 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 at g10code.com>
* delete.c (delete_one): Changed FPR to unsigned.
Index: gnupg/sm/fingerprint.c
diff -u gnupg/sm/fingerprint.c:1.14.2.5 gnupg/sm/fingerprint.c:1.14.2.6
--- gnupg/sm/fingerprint.c:1.14.2.5 Thu Jun 16 10:11:59 2005
+++ gnupg/sm/fingerprint.c Tue Jul 19 13:23:02 2005
@@ -318,7 +318,7 @@
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 @@
-
-
More information about the Gnupg-commits
mailing list