gpg-1.3.91: g10/passphrase.c: format string argument type size_t ->
int
Christian Cornelssen
ccorn at cs.tu-berlin.de
Sun Oct 17 11:29:03 CEST 2004
Hi,
gcc warned about this; uidlen is declared size_t, but passed as a
".*" (expected int) argument to sprintf. Here is the patch:
--- g10/passphrase.c.orig Fri Oct 15 14:55:51 2004
+++ g10/passphrase.c Sun Oct 17 08:59:33 2004
@@ -700,7 +700,7 @@
+ uidlen + 15 + strlen(algo_name) + keystrlen()
+ strlen (timestr) + strlen (maink) );
sprintf (atext, PROMPTSTRING,
- uidlen, uid,
+ (int)uidlen, uid,
nbits_from_pk (pk), algo_name, keystr(&keyid[0]), timestr,
maink );
m_free (uid);
Regards,
Christian Cornelssen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
Url : /pipermail/attachments/20041017/657b6817/attachment.bin
More information about the Gnupg-devel
mailing list