summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/auth2-chall.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2002-01-11 20:14:12 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2002-01-11 20:14:12 +0000
commitdbbbf7380fd0e24855620adf7b7c63ff8be631c2 (patch)
treedc35f0e4a6cc7f1af737efd7bea9826d0801321e /usr.bin/ssh/auth2-chall.c
parent20ebc3b2792a34fd89d0895fd305ba5f7a6e369c (diff)
use strlcpy not strlcat; mouring@
Diffstat (limited to 'usr.bin/ssh/auth2-chall.c')
-rw-r--r--usr.bin/ssh/auth2-chall.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/ssh/auth2-chall.c b/usr.bin/ssh/auth2-chall.c
index d9268cb50a5..92d0020e032 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.13 2001/12/28 15:06:00 markus Exp $");
+RCSID("$OpenBSD: auth2-chall.c,v 1.14 2002/01/11 20:14:11 markus Exp $");
#include "ssh2.h"
#include "auth.h"
@@ -291,8 +291,7 @@ input_userauth_info_response(int type, u_int32_t seq, void *ctxt)
len = strlen("keyboard-interactive") + 2 +
strlen(kbdintctxt->device->name);
method = xmalloc(len);
- method[0] = '\0';
- strlcat(method, "keyboard-interactive", len);
+ strlcpy(method, "keyboard-interactive", len);
strlcat(method, "/", len);
strlcat(method, kbdintctxt->device->name, len);