(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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user