diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2002-01-12 13:10:30 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2002-01-12 13:10:30 +0000 |
commit | 04e5f750eb9f9886b4a9580a0970c13daf8b61e8 (patch) | |
tree | 8a27ee91737b2f5ecc5bea14c2faac028ff882f0 /usr.bin | |
parent | 0ccf7f4567d5a522fe4879cf0287efeaa1a9465b (diff) |
undo local change
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/auth-skey.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth-skey.c b/usr.bin/ssh/auth-skey.c index d98fa6b0129..df19f75072d 100644 --- a/usr.bin/ssh/auth-skey.c +++ b/usr.bin/ssh/auth-skey.c @@ -22,7 +22,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "includes.h" -RCSID("$OpenBSD: auth-skey.c,v 1.15 2002/01/11 23:26:30 markus Exp $"); +RCSID("$OpenBSD: auth-skey.c,v 1.16 2002/01/12 13:10:29 markus Exp $"); #ifdef SKEY @@ -60,7 +60,8 @@ skey_query(void *ctx, char **name, char **infotxt, len = strlen(challenge) + strlen(PROMPT) + 1; p = xmalloc(len); - snprintf(p, len, "%s%s", challenge, PROMPT); + strlcpy(p, challenge, len); + strlcat(p, PROMPT, len); (*prompts)[0] = p; return 0; |