X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/3d932490b826facb568937a1290910a1265267f5..1aadfaac094abee8bfa7e3d37fe352562d1eba3d:/missing/strlcpy.c diff --git a/missing/strlcpy.c b/missing/strlcpy.c index db94c7d2..24dcca67 100644 --- a/missing/strlcpy.c +++ b/missing/strlcpy.c @@ -28,29 +28,23 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef lint -static const char rcsid[] = - "@(#) $Header: /tcpdump/master/tcpdump/missing/strlcpy.c,v 1.2 2002-08-01 08:53:40 risso Exp $ (LBL)"; -#endif - -#ifdef HAVE_CONFIG_H +#ifdef HAVE_CONFIG_H #include #endif -#include +#include #include +#include "netdissect.h" + /* * Copy src to string dst of size siz. At most siz-1 characters * will be copied. Always NUL terminates (unless siz == 0). * Returns strlen(src); if retval >= siz, truncation occurred. */ size_t -strlcpy(dst, src, siz) - char *dst; - const char *src; - size_t siz; +strlcpy(char *dst, const char *src, size_t siz) { register char *d = dst; register const char *s = src;