(krb5_aname_to_localname): use strlcpy, from openbsd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12043 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -86,7 +86,7 @@ krb5_aname_to_localname (krb5_context context,
|
|||||||
len = strlen (res);
|
len = strlen (res);
|
||||||
if (len >= lnsize)
|
if (len >= lnsize)
|
||||||
return ERANGE;
|
return ERANGE;
|
||||||
strcpy (lname, res);
|
strlcpy (lname, res, lnsize);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user