diff options
Diffstat (limited to 'crypto/kerberosIV/lib/krb/k_getsockinst.c')
-rw-r--r-- | crypto/kerberosIV/lib/krb/k_getsockinst.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/kerberosIV/lib/krb/k_getsockinst.c b/crypto/kerberosIV/lib/krb/k_getsockinst.c index 04676b1..6c3edb0 100644 --- a/crypto/kerberosIV/lib/krb/k_getsockinst.c +++ b/crypto/kerberosIV/lib/krb/k_getsockinst.c @@ -38,7 +38,7 @@ #include "krb_locl.h" -RCSID("$Id: k_getsockinst.c,v 1.10 1997/05/02 14:29:17 assar Exp $"); +RCSID("$Id: k_getsockinst.c,v 1.11 1998/06/09 19:25:20 joda Exp $"); /* * Return in inst the name of the local interface bound to socket @@ -61,8 +61,7 @@ k_getsockinst(int fd, char *inst, size_t inst_size) if (hnam == 0) goto fail; - strncpy (inst, hnam->h_name, inst_size); - inst[inst_size - 1] = '\0'; + strcpy_truncate (inst, hnam->h_name, inst_size); k_ricercar(inst); /* Canonicalize name */ return 0; /* Success */ |