=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/auth2-chall.c,v retrieving revision 1.13 retrieving revision 1.14 diff -u -r1.13 -r1.14 --- src/usr.bin/ssh/auth2-chall.c 2001/12/28 15:06:00 1.13 +++ src/usr.bin/ssh/auth2-chall.c 2002/01/11 20:14:11 1.14 @@ -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 @@ 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);