(srv_find_realm): use strlcpy, from openbsd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12044 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -122,7 +122,7 @@ srv_find_realm(krb5_context context, krb5_krbhst_info ***res, int *count,
|
||||
else
|
||||
hi->port = rr->u.srv->port;
|
||||
|
||||
strcpy(hi->hostname, rr->u.srv->target);
|
||||
strlcpy(hi->hostname, rr->u.srv->target, len);
|
||||
}
|
||||
|
||||
*count = num_srv;
|
||||
|
Reference in New Issue
Block a user