copy NUL too, from janj@wenf.org via openbsd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12101 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -124,7 +124,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;
|
||||||
|
|
||||||
strlcpy(hi->hostname, rr->u.srv->target, len);
|
strlcpy(hi->hostname, rr->u.srv->target, len + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
*count = num_srv;
|
*count = num_srv;
|
||||||
|
Reference in New Issue
Block a user