[svn] GnuPG - r5016 - trunk/g10

svn author wk cvs at cvs.gnupg.org
Wed May 20 11:08:49 CEST 2009


Author: wk
Date: 2009-05-20 11:08:48 +0200 (Wed, 20 May 2009)
New Revision: 5016

Modified:
   trunk/g10/ChangeLog
   trunk/g10/keygen.c
Log:
Fix bug#1056.


Modified: trunk/g10/ChangeLog
===================================================================
--- trunk/g10/ChangeLog	2009-05-19 22:39:45 UTC (rev 5015)
+++ trunk/g10/ChangeLog	2009-05-20 09:08:48 UTC (rev 5016)
@@ -1,3 +1,8 @@
+2009-05-20  Werner Koch  <wk at g10code.com>
+
+	* keygen.c (ask_key_flags): Fix bug in the translation check.
+	Fixes bug#1056.
+
 2009-05-18  Daiki Ueno  <ueno at unixuser.org>  (wk)
 
 	* encode.c (encode_simple): Tell passphrase_to_dek to cache

Modified: trunk/g10/keygen.c
===================================================================
--- trunk/g10/keygen.c	2009-05-19 22:39:45 UTC (rev 5015)
+++ trunk/g10/keygen.c	2009-05-20 09:08:48 UTC (rev 5016)
@@ -1555,7 +1555,7 @@
   unsigned int current=0;
   unsigned int possible=openpgp_pk_algo_usage(algo);
 
-  if ( strlen(togglers) != 7 )
+  if ( strlen(togglers) != 8 )
     {
       tty_printf ("NOTE: Bad translation at %s:%d. "
                   "Please report.\n", __FILE__, __LINE__);




More information about the Gnupg-commits mailing list