diff options
Diffstat (limited to 'src/lib/libc/string/strlcpy.c')
| -rw-r--r-- | src/lib/libc/string/strlcpy.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libc/string/strlcpy.c b/src/lib/libc/string/strlcpy.c index 300a28bc39..5f586964b7 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.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> |
| @@ -28,7 +28,7 @@ | |||
| 28 | */ | 28 | */ |
| 29 | 29 | ||
| 30 | #if defined(LIBC_SCCS) && !defined(lint) | 30 | #if defined(LIBC_SCCS) && !defined(lint) |
| 31 | static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp $"; | 31 | static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $"; |
| 32 | #endif /* LIBC_SCCS and not lint */ | 32 | #endif /* LIBC_SCCS and not lint */ |
| 33 | 33 | ||
| 34 | #include <sys/types.h> | 34 | #include <sys/types.h> |
| @@ -39,7 +39,8 @@ static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp | |||
| 39 | * will be copied. Always NUL terminates (unless siz == 0). | 39 | * will be copied. Always NUL terminates (unless siz == 0). |
| 40 | * Returns strlen(src); if retval >= siz, truncation occurred. | 40 | * Returns strlen(src); if retval >= siz, truncation occurred. |
| 41 | */ | 41 | */ |
| 42 | size_t strlcpy(dst, src, siz) | 42 | size_t |
| 43 | strlcpy(dst, src, siz) | ||
| 43 | char *dst; | 44 | char *dst; |
| 44 | const char *src; | 45 | const char *src; |
| 45 | size_t siz; | 46 | size_t siz; |
