summaryrefslogtreecommitdiffstats
path: root/lib/libc/string
diff options
context:
space:
mode:
authorpjanzen <pjanzen@openbsd.org>1999-09-04 02:22:46 +0000
committerpjanzen <pjanzen@openbsd.org>1999-09-04 02:22:46 +0000
commitabc6034e88616fed21615eed20ce83b417c238b0 (patch)
treebb7530f6e0b53a50f57080b62fc0863d853462c8 /lib/libc/string
parententropy saving moved to rc (diff)
downloadwireguard-openbsd-abc6034e88616fed21615eed20ce83b417c238b0.tar.xz
wireguard-openbsd-abc6034e88616fed21615eed20ce83b417c238b0.zip
Using .Li inside a .Bd -literal block messes up the fonts thereafter;
.Li ... -> \&...
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/strlcpy.38
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/string/strlcpy.3 b/lib/libc/string/strlcpy.3
index 52026669ea5..b07e30e6ea3 100644
--- a/lib/libc/string/strlcpy.3
+++ b/lib/libc/string/strlcpy.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: strlcpy.3,v 1.5 1999/06/06 15:17:32 aaron Exp $
+.\" $OpenBSD: strlcpy.3,v 1.6 1999/09/04 02:22:46 pjanzen Exp $
.\"
.\" Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
.\" All rights reserved.
@@ -101,7 +101,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));
@@ -112,7 +112,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;
@@ -126,7 +126,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))