summaryrefslogtreecommitdiffstats
path: root/crypto/kerberosIV/lib/roken/inaddr2str.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/kerberosIV/lib/roken/inaddr2str.c')
-rw-r--r--crypto/kerberosIV/lib/roken/inaddr2str.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/crypto/kerberosIV/lib/roken/inaddr2str.c b/crypto/kerberosIV/lib/roken/inaddr2str.c
index a676bca..5a1ab56 100644
--- a/crypto/kerberosIV/lib/roken/inaddr2str.c
+++ b/crypto/kerberosIV/lib/roken/inaddr2str.c
@@ -14,12 +14,7 @@
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
- * 3. All advertising materials mentioning features or use of this software
- * must display the following acknowledgement:
- * This product includes software developed by the Kungliga Tekniska
- * Högskolan and its contributors.
- *
- * 4. Neither the name of the Institute nor the names of its contributors
+ * 3. Neither the name of the Institute nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -38,7 +33,7 @@
#ifdef HAVE_CONFIG_H
#include <config.h>
-RCSID("$Id: inaddr2str.c,v 1.10 1998/07/13 13:59:46 assar Exp $");
+RCSID("$Id: inaddr2str.c,v 1.12 1999/12/02 16:58:46 joda Exp $");
#endif
#include <stdlib.h>
@@ -86,10 +81,10 @@ inaddr2str(struct in_addr addr, char *s, size_t len)
*p;
++p)
if (memcmp (*p, &addr, sizeof(addr)) == 0) {
- strcpy_truncate (s, h->h_name, len);
+ strlcpy (s, h->h_name, len);
return;
}
}
- strcpy_truncate (s, inet_ntoa (addr), len);
+ strlcpy (s, inet_ntoa (addr), len);
return;
}
OpenPOWER on IntegriCloud