summaryrefslogtreecommitdiff
path: root/auth2-chall.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-01-22 23:24:33 +1100
committerDamien Miller <djm@mindrot.org>2002-01-22 23:24:33 +1100
commita5ebe0c39d30ce6c22bf152c638ea753c531ecb2 (patch)
tree0788438274d595f3ca433df112e9734594722ced /auth2-chall.c
parent7d05339c709efbf699e0dae499308428174a0da4 (diff)
- markus@cvs.openbsd.org 2002/01/11 20:14:11
[auth2-chall.c auth-skey.c] use strlcpy not strlcat; mouring@
Diffstat (limited to 'auth2-chall.c')
-rw-r--r--auth2-chall.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/auth2-chall.c b/auth2-chall.c
index d9268cb50..92d0020e0 100644
--- a/auth2-chall.c
+++ b/auth2-chall.c
@@ -23,7 +23,7 @@
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: auth2-chall.c,v 1.13 2001/12/28 15:06:00 markus Exp $"); 26RCSID("$OpenBSD: auth2-chall.c,v 1.14 2002/01/11 20:14:11 markus Exp $");
27 27
28#include "ssh2.h" 28#include "ssh2.h"
29#include "auth.h" 29#include "auth.h"
@@ -291,8 +291,7 @@ input_userauth_info_response(int type, u_int32_t seq, void *ctxt)
291 len = strlen("keyboard-interactive") + 2 + 291 len = strlen("keyboard-interactive") + 2 +
292 strlen(kbdintctxt->device->name); 292 strlen(kbdintctxt->device->name);
293 method = xmalloc(len); 293 method = xmalloc(len);
294 method[0] = '\0'; 294 strlcpy(method, "keyboard-interactive", len);
295 strlcat(method, "keyboard-interactive", len);
296 strlcat(method, "/", len); 295 strlcat(method, "/", len);
297 strlcat(method, kbdintctxt->device->name, len); 296 strlcat(method, kbdintctxt->device->name, len);
298 297