diff options
Diffstat (limited to 'kerberosIV/krb/sendauth.c')
-rw-r--r-- | kerberosIV/krb/sendauth.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kerberosIV/krb/sendauth.c b/kerberosIV/krb/sendauth.c index 96ff7c30ba5..d0c71d3e1b4 100644 --- a/kerberosIV/krb/sendauth.c +++ b/kerberosIV/krb/sendauth.c @@ -1,3 +1,4 @@ +/* $OpenBSD: sendauth.c,v 1.4 1997/12/09 07:57:38 art Exp $ */ /* $KTH: sendauth.c,v 1.15 1997/04/18 14:11:36 joda Exp $ */ /* @@ -148,6 +149,8 @@ krb_sendauth(int32_t options, /* bit-pattern of options */ else strncpy (inst, krb_get_phost(instance), sizeof(inst)); + inst[sizeof(inst)-1] = '\0'; + ret = krb_get_cred (service, inst, realm, cred); if (ret != KSUCCESS) return ret; |