summaryrefslogtreecommitdiff
path: root/src/lib/libc/string/strlcpy.c
diff options
context:
space:
mode:
authorotto <>2005-03-30 20:13:52 +0000
committerotto <>2005-03-30 20:13:52 +0000
commit862e6817b3f445520231811d27e5ba22fa2ed1c7 (patch)
treea84bc4f2badc3483fb1f0e8f1911cb99ac461521 /src/lib/libc/string/strlcpy.c
parent894b6ab0099e7d9ca2ad9acb75246cd0a4542167 (diff)
downloadopenbsd-862e6817b3f445520231811d27e5ba22fa2ed1c7.tar.gz
openbsd-862e6817b3f445520231811d27e5ba22fa2ed1c7.tar.bz2
openbsd-862e6817b3f445520231811d27e5ba22fa2ed1c7.zip
ansify + deregister. no binary change on i386. ok deraadt@ pat@ moritz@
Diffstat (limited to 'src/lib/libc/string/strlcpy.c')
-rw-r--r--src/lib/libc/string/strlcpy.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libc/string/strlcpy.c b/src/lib/libc/string/strlcpy.c
index 82cbfac016..09a9c2b360 100644
--- a/src/lib/libc/string/strlcpy.c
+++ b/src/lib/libc/string/strlcpy.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: strlcpy.c,v 1.8 2003/06/17 21:56:24 millert Exp $ */ 1/* $OpenBSD: strlcpy.c,v 1.9 2005/03/30 20:13:52 otto Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> 4 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -17,7 +17,7 @@
17 */ 17 */
18 18
19#if defined(LIBC_SCCS) && !defined(lint) 19#if defined(LIBC_SCCS) && !defined(lint)
20static char *rcsid = "$OpenBSD: strlcpy.c,v 1.8 2003/06/17 21:56:24 millert Exp $"; 20static char *rcsid = "$OpenBSD: strlcpy.c,v 1.9 2005/03/30 20:13:52 otto Exp $";
21#endif /* LIBC_SCCS and not lint */ 21#endif /* LIBC_SCCS and not lint */
22 22
23#include <sys/types.h> 23#include <sys/types.h>
@@ -31,9 +31,9 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.8 2003/06/17 21:56:24 millert Exp
31size_t 31size_t
32strlcpy(char *dst, const char *src, size_t siz) 32strlcpy(char *dst, const char *src, size_t siz)
33{ 33{
34 register char *d = dst; 34 char *d = dst;
35 register const char *s = src; 35 const char *s = src;
36 register size_t n = siz; 36 size_t n = siz;
37 37
38 /* Copy as many bytes as will fit */ 38 /* Copy as many bytes as will fit */
39 if (n != 0 && --n != 0) { 39 if (n != 0 && --n != 0) {