diff options
author | 2000-11-24 11:10:02 +0000 | |
---|---|---|
committer | 2000-11-24 11:10:02 +0000 | |
commit | d4381db49488e6fc11caf32aab92acff75e565af (patch) | |
tree | b726ce258dae6baf02de7d030361238f123dd4e1 /lib/libc/string/strlcat.c | |
parent | sync with recent kame document. (diff) | |
download | wireguard-openbsd-d4381db49488e6fc11caf32aab92acff75e565af.tar.xz wireguard-openbsd-d4381db49488e6fc11caf32aab92acff75e565af.zip |
comment fix; strlcat returns strlen(initial dst) + strlen(src).
Diffstat (limited to 'lib/libc/string/strlcat.c')
-rw-r--r-- | lib/libc/string/strlcat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/string/strlcat.c b/lib/libc/string/strlcat.c index 599994edf5a..f7d43bb24b6 100644 --- a/lib/libc/string/strlcat.c +++ b/lib/libc/string/strlcat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strlcat.c,v 1.2 1999/06/17 16:28:58 millert Exp $ */ +/* $OpenBSD: strlcat.c,v 1.3 2000/11/24 11:10:02 itojun 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: strlcat.c,v 1.2 1999/06/17 16:28:58 millert Exp $"; +static char *rcsid = "$OpenBSD: strlcat.c,v 1.3 2000/11/24 11:10:02 itojun Exp $"; #endif /* LIBC_SCCS and not lint */ #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 * Appends src to string dst of size siz (unlike strncat, siz is the * full size of dst, not space left). At most siz-1 characters * will be copied. Always NUL terminates (unless siz == 0). - * Returns strlen(src); if retval >= siz, truncation occurred. + * Returns strlen(initial dst) + strlen(src); if retval >= siz, + * truncation occurred. */ size_t strlcat(dst, src, siz) char *dst; |