From a76c7b96e57df3c11cd60827aea8f50912ad5cd8 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 17 Feb 2010 10:26:32 +0000 Subject: [PATCH] Fix bug#1186 --- g10/keygen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g10/keygen.c b/g10/keygen.c index 22e56de0d..7b8a6cb48 100644 --- a/g10/keygen.c +++ b/g10/keygen.c @@ -2203,7 +2203,7 @@ ask_user_id (int mode, KBNODE keyblock) if( strlen(ansstr) != 10 ) BUG(); if( cpr_enabled() ) { - answer = xstrdup(ansstr+6); + answer = xstrdup (ansstr + (fail?8:6)); answer[1] = 0; } else {