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:
Love Hörnquist Åstrand
2003-04-22 14:48:20 +00:00
parent 5d5dc20867
commit 51d5c694e3

View File

@@ -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;