diff options
author | itojun <> | 2000-11-24 11:10:02 +0000 |
---|---|---|
committer | itojun <> | 2000-11-24 11:10:02 +0000 |
commit | e314b8fbec0be279347e3492668183042073aee4 (patch) | |
tree | 3a00ed57f600f837651defaa179dbd5a25b7a119 | |
parent | 3df78311cf061ac3509688171c77af48f8a439a5 (diff) | |
download | openbsd-e314b8fbec0be279347e3492668183042073aee4.tar.gz openbsd-e314b8fbec0be279347e3492668183042073aee4.tar.bz2 openbsd-e314b8fbec0be279347e3492668183042073aee4.zip |
comment fix; strlcat returns strlen(initial dst) + strlen(src).
-rw-r--r-- | src/lib/libc/string/strlcat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libc/string/strlcat.c b/src/lib/libc/string/strlcat.c index 599994edf5..f7d43bb24b 100644 --- a/src/lib/libc/string/strlcat.c +++ b/src/lib/libc/string/strlcat.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: strlcat.c,v 1.2 1999/06/17 16:28:58 millert Exp $ */ | 1 | /* $OpenBSD: strlcat.c,v 1.3 2000/11/24 11:10:02 itojun 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: strlcat.c,v 1.2 1999/06/17 16:28:58 millert Exp $"; | 31 | static char *rcsid = "$OpenBSD: strlcat.c,v 1.3 2000/11/24 11:10:02 itojun 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> |
@@ -38,7 +38,8 @@ static char *rcsid = "$OpenBSD: strlcat.c,v 1.2 1999/06/17 16:28:58 millert Exp | |||
38 | * Appends src to string dst of size siz (unlike strncat, siz is the | 38 | * Appends src to string dst of size siz (unlike strncat, siz is the |
39 | * full size of dst, not space left). At most siz-1 characters | 39 | * full size of dst, not space left). At most siz-1 characters |
40 | * will be copied. Always NUL terminates (unless siz == 0). | 40 | * will be copied. Always NUL terminates (unless siz == 0). |
41 | * Returns strlen(src); if retval >= siz, truncation occurred. | 41 | * Returns strlen(initial dst) + strlen(src); if retval >= siz, |
42 | * truncation occurred. | ||
42 | */ | 43 | */ |
43 | size_t strlcat(dst, src, siz) | 44 | size_t strlcat(dst, src, siz) |
44 | char *dst; | 45 | char *dst; |