[svn] ksba - r291 - trunk/src
svn author wk
cvs at cvs.gnupg.org
Mon Mar 17 10:55:53 CET 2008
Author: wk
Date: 2008-03-17 10:55:50 +0100 (Mon, 17 Mar 2008)
New Revision: 291
Modified:
trunk/src/ChangeLog
trunk/src/cert.c
Log:
Printf arg fix.
Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog 2008-02-25 12:58:55 UTC (rev 290)
+++ trunk/src/ChangeLog 2008-03-17 09:55:50 UTC (rev 291)
@@ -1,3 +1,8 @@
+2008-03-17 Werner Koch <wk at g10code.com>
+
+ * cert.c (ksba_cert_get_image): Fix size_t/int format mismatch.
+ Reported by Stéphane Corthésy.
+
2008-02-25 Werner Koch <wk at g10code.com>
* visibility.h, visibility.c: New.
Modified: trunk/src/cert.c
===================================================================
--- trunk/src/cert.c 2008-02-25 12:58:55 UTC (rev 290)
+++ trunk/src/cert.c 2008-03-17 09:55:50 UTC (rev 291)
@@ -348,8 +348,8 @@
if ( !(n->nhdr + n->len + n->off <= cert->imagelen) )
{
fprintf (stderr,"\nOops, ksba_cert_get_image failed: "
- "imagelen=%d hdr=%d len=%d off=%d\n",
- cert->imagelen, n->nhdr, (int)n->len, n->off);
+ "imagelen=%lu hdr=%d len=%d off=%d\n",
+ (unsigned long)cert->imagelen, n->nhdr, (int)n->len, n->off);
return NULL;
}
/*assert (n->nhdr + n->len + n->off <= cert->imagelen);*/
More information about the Gnupg-commits
mailing list