summaryrefslogtreecommitdiffstats
path: root/auth2-chall.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-01-22 13:25:08 +0100
committerDamien Miller <djm@mindrot.org>2002-01-22 13:25:08 +0100
commit209ee4e3680d1a965cf42b0c13068536a4984fd0 (patch)
tree4f1e8de457005042aff8021cdf4cead3e6270f16 /auth2-chall.c
parent - markus@cvs.openbsd.org 2002/01/11 23:02:18 (diff)
downloadopenssh-209ee4e3680d1a965cf42b0c13068536a4984fd0.tar.xz
openssh-209ee4e3680d1a965cf42b0c13068536a4984fd0.zip
- markus@cvs.openbsd.org 2002/01/11 23:02:51
[auth2-chall.c] use snprintf; mouring@
Diffstat (limited to '')
-rw-r--r--auth2-chall.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/auth2-chall.c b/auth2-chall.c
index 92d0020e0..a1f96392e 100644
--- a/auth2-chall.c
+++ b/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) {