diff options
Diffstat (limited to 'auth-skey.c')
-rw-r--r-- | auth-skey.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/auth-skey.c b/auth-skey.c index fd0fcfc95..d98fa6b01 100644 --- a/auth-skey.c +++ b/auth-skey.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | */ | 23 | */ |
24 | #include "includes.h" | 24 | #include "includes.h" |
25 | RCSID("$OpenBSD: auth-skey.c,v 1.14 2002/01/11 20:14:11 markus Exp $"); | 25 | RCSID("$OpenBSD: auth-skey.c,v 1.15 2002/01/11 23:26:30 markus Exp $"); |
26 | 26 | ||
27 | #ifdef SKEY | 27 | #ifdef SKEY |
28 | 28 | ||
@@ -60,8 +60,7 @@ skey_query(void *ctx, char **name, char **infotxt, | |||
60 | 60 | ||
61 | len = strlen(challenge) + strlen(PROMPT) + 1; | 61 | len = strlen(challenge) + strlen(PROMPT) + 1; |
62 | p = xmalloc(len); | 62 | p = xmalloc(len); |
63 | strlcpy(p, challenge, len); | 63 | snprintf(p, len, "%s%s", challenge, PROMPT); |
64 | strlcat(p, PROMPT, len); | ||
65 | (*prompts)[0] = p; | 64 | (*prompts)[0] = p; |
66 | 65 | ||
67 | return 0; | 66 | return 0; |