diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2000-12-29 14:45:07 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2000-12-29 14:45:07 +0000 |
| commit | f796e00479b092a85a79b04ac4015f11f85e483d (patch) | |
| tree | 386058719747192ff0edc6e7093656cd8ba4a910 /lib/libc/string | |
| parent | 248ebf7c840bb8b426f01faa521d6badbfa797ba (diff) | |
Notes
Diffstat (limited to 'lib/libc/string')
| -rw-r--r-- | lib/libc/string/strlcpy.3 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/string/strlcpy.3 b/lib/libc/string/strlcpy.3 index 7ae3443e703a..c84cec5907a0 100644 --- a/lib/libc/string/strlcpy.3 +++ b/lib/libc/string/strlcpy.3 @@ -105,7 +105,7 @@ The following code fragment illustrates the simple case: .Bd -literal -offset indent char *s, *p, buf[BUFSIZ]; -.Li ... +\&... (void)strlcpy(buf, s, sizeof(buf)); (void)strlcat(buf, p, sizeof(buf)); @@ -116,7 +116,7 @@ like the following might be used: .Bd -literal -offset indent char *dir, *file, pname[MAXPATHNAMELEN]; -.Li ... +\&... if (strlcpy(pname, dir, sizeof(pname)) >= sizeof(pname)) goto toolong; @@ -130,7 +130,7 @@ speed things up a bit by using a copy instead on an append: char *dir, *file, pname[MAXPATHNAMELEN]; size_t n; -.Li ... +\&... n = strlcpy(pname, dir, sizeof(pname)); if (n >= sizeof(pname)) |
