strc{py,at}_truncate -> strlc{py,at}

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6983 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-09-16 20:06:06 +00:00
parent 23d6d3764d
commit 8e441f1158
7 changed files with 22 additions and 20 deletions

View File

@@ -86,10 +86,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;
}