diff options
Diffstat (limited to 'openbsd-compat/strlcpy.c')
-rw-r--r-- | openbsd-compat/strlcpy.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/openbsd-compat/strlcpy.c b/openbsd-compat/strlcpy.c index 99b06dd90..b5e5a552e 100644 --- a/openbsd-compat/strlcpy.c +++ b/openbsd-compat/strlcpy.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp $ */ | 1 | /* $OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt 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> |
@@ -31,7 +31,7 @@ | |||
31 | #ifndef HAVE_STRLCPY | 31 | #ifndef HAVE_STRLCPY |
32 | 32 | ||
33 | #if defined(LIBC_SCCS) && !defined(lint) | 33 | #if defined(LIBC_SCCS) && !defined(lint) |
34 | static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp $"; | 34 | static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $"; |
35 | #endif /* LIBC_SCCS and not lint */ | 35 | #endif /* LIBC_SCCS and not lint */ |
36 | 36 | ||
37 | #include <sys/types.h> | 37 | #include <sys/types.h> |
@@ -43,7 +43,8 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp | |||
43 | * will be copied. Always NUL terminates (unless siz == 0). | 43 | * will be copied. Always NUL terminates (unless siz == 0). |
44 | * Returns strlen(src); if retval >= siz, truncation occurred. | 44 | * Returns strlen(src); if retval >= siz, truncation occurred. |
45 | */ | 45 | */ |
46 | size_t strlcpy(dst, src, siz) | 46 | size_t |
47 | strlcpy(dst, src, siz) | ||
47 | char *dst; | 48 | char *dst; |
48 | const char *src; | 49 | const char *src; |
49 | size_t siz; | 50 | size_t siz; |