From 52cde19e4b0fabe24ae5b51cd3f6d773cd8f268d Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Mon, 7 Feb 2000 03:17:20 +0000 Subject: [PATCH] (change_password): replace strncpy with strlcpy git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7878 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/init_creds_pw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/krb5/init_creds_pw.c b/lib/krb5/init_creds_pw.c index 2e5518bb7..bd4fa4521 100644 --- a/lib/krb5/init_creds_pw.c +++ b/lib/krb5/init_creds_pw.c @@ -353,7 +353,7 @@ change_password (krb5_context context, ret = (*prompter) (context, data, p, 0, NULL); free (p); if (result_code == 0) { - strncpy (newpw, buf1, newpw_sz); + strlcpy (newpw, buf1, newpw_sz); ret = 0; } else ret = ENOTTY;