diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2002-01-11 23:02:52 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2002-01-11 23:02:52 +0000 |
commit | 98fc54466cc75813ccbd8f7f5570a8f9b11968d8 (patch) | |
tree | 7a479d7894cdd93af4d7f5954454c73bb668eabe | |
parent | 80bb158d4c815b18eee8d585e3c3c70a0e5f98a2 (diff) |
use snprintf; mouring@
-rw-r--r-- | usr.bin/ssh/auth2-chall.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/ssh/auth2-chall.c b/usr.bin/ssh/auth2-chall.c index 92d0020e032..a1f96392e1f 100644 --- a/usr.bin/ssh/auth2-chall.c +++ b/usr.bin/ssh/auth2-chall.c @@ -23,7 +23,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #include "includes.h" -RCSID("$OpenBSD: auth2-chall.c,v 1.14 2002/01/11 20:14:11 markus Exp $"); +RCSID("$OpenBSD: auth2-chall.c,v 1.15 2002/01/11 23:02:51 markus Exp $"); #include "ssh2.h" #include "auth.h" @@ -291,9 +291,8 @@ input_userauth_info_response(int type, u_int32_t seq, void *ctxt) len = strlen("keyboard-interactive") + 2 + strlen(kbdintctxt->device->name); method = xmalloc(len); - strlcpy(method, "keyboard-interactive", len); - strlcat(method, "/", len); - strlcat(method, kbdintctxt->device->name, len); + snprintf(method, len, "keyboard-interactive/%s", + kbdintctxt->device->name); if (!authctxt->postponed) { if (authenticated) { |