(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:
Love Hörnquist Åstrand
2003-04-16 16:04:32 +00:00
parent 2d8b789486
commit 80371a04ce

View File

@@ -122,7 +122,7 @@ srv_find_realm(krb5_context context, krb5_krbhst_info ***res, int *count,
else else
hi->port = rr->u.srv->port; hi->port = rr->u.srv->port;
strcpy(hi->hostname, rr->u.srv->target); strlcpy(hi->hostname, rr->u.srv->target, len);
} }
*count = num_srv; *count = num_srv;