summaryrefslogtreecommitdiff
path: root/auth-skey.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 /auth-skey.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 'auth-skey.c')
-rw-r--r--auth-skey.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/auth-skey.c b/auth-skey.c
index 6dc71223..fd0fcfc9 100644
--- a/auth-skey.c
+++ b/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.13 2001/12/19 07:18:56 deraadt Exp $");
+RCSID("$OpenBSD: auth-skey.c,v 1.14 2002/01/11 20:14:11 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);
- p[0] = '\0';
- strlcat(p, challenge, len);
+ strlcpy(p, challenge, len);
strlcat(p, PROMPT, len);
(*prompts)[0] = p;