(change_password): replace strncpy with strlcpy

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7878 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-02-07 03:17:20 +00:00
parent c90283040a
commit 52cde19e4b

View File

@@ -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;