strc{py,at}_truncate -> strlc{py,at}
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6985 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -70,7 +70,7 @@ krb5_sock_to_principal (krb5_context context,
|
||||
|
||||
if (hostent == NULL)
|
||||
return h_errno;
|
||||
strcpy_truncate(hname, hostent->h_name, sizeof(hname));
|
||||
strlcpy(hname, hostent->h_name, sizeof(hname));
|
||||
return krb5_sname_to_principal (context,
|
||||
hname,
|
||||
sname,
|
||||
|
Reference in New Issue
Block a user