summaryrefslogtreecommitdiff
path: root/sys/lib/libkern/strlcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/lib/libkern/strlcpy.c')
-rw-r--r--sys/lib/libkern/strlcpy.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/lib/libkern/strlcpy.c b/sys/lib/libkern/strlcpy.c
index 598220c7c98..1f0d117c5d4 100644
--- a/sys/lib/libkern/strlcpy.c
+++ b/sys/lib/libkern/strlcpy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strlcpy.c,v 1.1 2000/12/18 18:40:45 provos Exp $ */
+/* $OpenBSD: strlcpy.c,v 1.2 2003/03/14 14:34:24 millert Exp $ */
/*
* Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -28,7 +28,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char *rcsid = "$OpenBSD: strlcpy.c,v 1.1 2000/12/18 18:40:45 provos Exp $";
+static char *rcsid = "$OpenBSD: strlcpy.c,v 1.2 2003/03/14 14:34:24 millert Exp $";
#endif /* LIBC_SCCS and not lint */
#if !defined(_KERNEL) && !defined(_STANDALONE)
@@ -43,10 +43,8 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.1 2000/12/18 18:40:45 provos Exp $
* 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;
+size_t
+strlcpy(char *dst, const char *src, size_t siz)
{
register char *d = dst;
register const char *s = src;