summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/auth-skey.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2002-01-11 23:26:31 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2002-01-11 23:26:31 +0000
commitd2a4e5538170be5348cf034e23c46ca55e3fac7a (patch)
tree55e0a3bf1fe89bc3297c3f889d8ac735335c6ea5 /usr.bin/ssh/auth-skey.c
parent98fc54466cc75813ccbd8f7f5570a8f9b11968d8 (diff)
use snprintf; mouring@
Diffstat (limited to 'usr.bin/ssh/auth-skey.c')
-rw-r--r--usr.bin/ssh/auth-skey.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/ssh/auth-skey.c b/usr.bin/ssh/auth-skey.c
index fd0fcfc9583..d98fa6b0129 100644
--- a/usr.bin/ssh/auth-skey.c
+++ b/usr.bin/ssh/auth-skey.c
@@ -22,7 +22,7 @@
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "includes.h"
-RCSID("$OpenBSD: auth-skey.c,v 1.14 2002/01/11 20:14:11 markus Exp $");
+RCSID("$OpenBSD: auth-skey.c,v 1.15 2002/01/11 23:26:30 markus Exp $");
#ifdef SKEY
@@ -60,8 +60,7 @@ skey_query(void *ctx, char **name, char **infotxt,
len = strlen(challenge) + strlen(PROMPT) + 1;
p = xmalloc(len);
- strlcpy(p, challenge, len);
- strlcat(p, PROMPT, len);
+ snprintf(p, len, "%s%s", challenge, PROMPT);
(*prompts)[0] = p;
return 0;