diff options
author | Joseph Mingrone <jrm@FreeBSD.org> | 2024-09-05 19:46:35 +0000 |
---|---|---|
committer | Joseph Mingrone <jrm@FreeBSD.org> | 2024-09-05 19:46:35 +0000 |
commit | 025be3f592b920ff0a3e602e5aa8b60a34e5e617 (patch) | |
tree | 4f33277584e4a38c8bad5c2788584a00cf830ea4 /missing/strlcpy.c | |
parent | 6b96668d5b49eea57b7551349eca70928cc199ce (diff) |
Diffstat (limited to 'missing/strlcpy.c')
-rw-r--r-- | missing/strlcpy.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/missing/strlcpy.c b/missing/strlcpy.c index c552e0d59685..494ff77390fc 100644 --- a/missing/strlcpy.c +++ b/missing/strlcpy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcap_strlcpy.c,v 1.12 2015/01/15 03:54:12 millert Exp $ */ +/* $OpenBSD: strlcpy.c,v 1.12 2015/01/15 03:54:12 millert Exp $ */ /* * Copyright (c) 1998, 2015 Todd C. Miller <Todd.Miller@courtesan.com> @@ -16,9 +16,7 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#ifdef HAVE_CONFIG_H #include <config.h> -#endif #include <stddef.h> #include <string.h> @@ -31,7 +29,7 @@ * Returns strlen(src); if retval >= dsize, truncation occurred. */ size_t -pcap_strlcpy(char * restrict dst, const char * restrict src, size_t dsize) +pcapint_strlcpy(char * restrict dst, const char * restrict src, size_t dsize) { const char *osrc = src; size_t nleft = dsize; |