[svn] GnuPG - r5262 - branches/STABLE-BRANCH-2-0/g10

svn author wk cvs at cvs.gnupg.org
Wed Feb 17 11:26:33 CET 2010


Author: wk
Date: 2010-02-17 11:26:32 +0100 (Wed, 17 Feb 2010)
New Revision: 5262

Modified:
   branches/STABLE-BRANCH-2-0/g10/keygen.c
Log:
Fix bug#1186


Modified: branches/STABLE-BRANCH-2-0/g10/keygen.c
===================================================================
--- branches/STABLE-BRANCH-2-0/g10/keygen.c	2010-02-17 10:23:42 UTC (rev 5261)
+++ branches/STABLE-BRANCH-2-0/g10/keygen.c	2010-02-17 10:26:32 UTC (rev 5262)
@@ -2203,7 +2203,7 @@
 	    if( strlen(ansstr) != 10 )
 		BUG();
 	    if( cpr_enabled() ) {
-		answer = xstrdup(ansstr+6);
+                answer = xstrdup (ansstr + (fail?8:6));
 		answer[1] = 0;
 	    }
 	    else {




More information about the Gnupg-commits mailing list