diff options
Diffstat (limited to 'auth-skey.c')
-rw-r--r-- | auth-skey.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/auth-skey.c b/auth-skey.c index d98fa6b01..df19f7507 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.15 2002/01/11 23:26:30 markus Exp $"); | 25 | RCSID("$OpenBSD: auth-skey.c,v 1.16 2002/01/12 13:10:29 markus Exp $"); |
26 | 26 | ||
27 | #ifdef SKEY | 27 | #ifdef SKEY |
28 | 28 | ||
@@ -60,7 +60,8 @@ 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 | snprintf(p, len, "%s%s", challenge, PROMPT); | 63 | strlcpy(p, challenge, len); |
64 | strlcat(p, PROMPT, len); | ||
64 | (*prompts)[0] = p; | 65 | (*prompts)[0] = p; |
65 | 66 | ||
66 | return 0; | 67 | return 0; |