summaryrefslogtreecommitdiffstats
path: root/lib/libc/string/strlcpy.c
diff options
context:
space:
mode:
authorwvdputte <wvdputte@openbsd.org>1998-11-06 04:33:16 +0000
committerwvdputte <wvdputte@openbsd.org>1998-11-06 04:33:16 +0000
commit03fd712e8041c74aec88a2fbed008d7122f2b5ab (patch)
treef5043a98a5f47476c5bcef977120acaa9c419dec /lib/libc/string/strlcpy.c
parentuse .Dq/.Sq macros instead of `` ''s and ` 's (think typesetting and future (diff)
downloadwireguard-openbsd-03fd712e8041c74aec88a2fbed008d7122f2b5ab.tar.xz
wireguard-openbsd-03fd712e8041c74aec88a2fbed008d7122f2b5ab.zip
add missing const to match prototype in string.h
Diffstat (limited to 'lib/libc/string/strlcpy.c')
-rw-r--r--lib/libc/string/strlcpy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/string/strlcpy.c b/lib/libc/string/strlcpy.c
index 1a604455991..2b6a166175c 100644
--- a/lib/libc/string/strlcpy.c
+++ b/lib/libc/string/strlcpy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strlcpy.c,v 1.1 1998/07/01 01:29:45 millert Exp $ */
+/* $OpenBSD: strlcpy.c,v 1.2 1998/11/06 04:33:16 wvdputte 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 1998/07/01 01:29:45 millert Exp $";
+static char *rcsid = "$OpenBSD: strlcpy.c,v 1.2 1998/11/06 04:33:16 wvdputte Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -41,7 +41,7 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.1 1998/07/01 01:29:45 millert Exp
*/
size_t strlcpy(dst, src, siz)
char *dst;
- char *src;
+ const char *src;
size_t siz;
{
register char *d = dst;