summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorceri <ceri@FreeBSD.org>2006-04-18 21:37:24 +0000
committerceri <ceri@FreeBSD.org>2006-04-18 21:37:24 +0000
commitfa129851243af1f8600245a7b6d21564f4687611 (patch)
tree5fc2a258e655a11d6d53ce1848ca2fdc1b2504d8 /lib/libc
parent56c56816b9f44bbd74b969d3566feefd1141c237 (diff)
downloadFreeBSD-src-fa129851243af1f8600245a7b6d21564f4687611.zip
FreeBSD-src-fa129851243af1f8600245a7b6d21564f4687611.tar.gz
Correct usage example.
PR: docs/95059 Submitted by: Jos Backus MFC after: 4 days
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/wordexp.32
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/wordexp.3 b/lib/libc/gen/wordexp.3
index c3fb5e0..02fc253 100644
--- a/lib/libc/gen/wordexp.3
+++ b/lib/libc/gen/wordexp.3
@@ -167,7 +167,7 @@ and
wordexp_t we;
wordexp("${EDITOR:-vi} *.c /etc/motd", &we, 0);
-execvp(we->we_wordv[0], we->we_wordv);
+execvp(we.we_wordv[0], we.we_wordv);
.Ed
.Sh DIAGNOSTICS
Diagnostic messages from the shell are written to the standard error output
OpenPOWER on IntegriCloud