diff --git a/auth/kerb5.c b/auth/kerb5.c index 81ad50e08..00d3eceee 100644 --- a/auth/kerb5.c +++ b/auth/kerb5.c @@ -266,8 +266,8 @@ verify_krb_v5_tgt(sudo_context, ccache, auth_name) return(-1); } - /* Extract the name directly. - strlcpy(phost, krb5_principal_get_realm(sudo_context, princ, 1), + /* Extract the name directly. */ + strlcpy(phost, krb5_principal_get_realm(sudo_context, princ), sizeof(phost)); /*