aboutsummaryrefslogtreecommitdiff
path: root/bin/pwd
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2000-11-26 08:50:12 +0000
committerKris Kennaway <kris@FreeBSD.org>2000-11-26 08:50:12 +0000
commit0ab378def6a1152dd0cd4616952ad23edb731b16 (patch)
tree28c747dfedceebfe52442fd00746f5327a18b60a /bin/pwd
parentda4cd46eac0f2e24e8e7d1bd1f1e2e2f3a87af87 (diff)
downloadsrc-0ab378def6a1152dd0cd4616952ad23edb731b16.tar.gz
src-0ab378def6a1152dd0cd4616952ad23edb731b16.zip
Don't call err() with user data and without a format string
Notes
Notes: svn path=/head/; revision=69195
Diffstat (limited to 'bin/pwd')
-rw-r--r--bin/pwd/pwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/pwd/pwd.c b/bin/pwd/pwd.c
index 849c309926ac..b8396176e7ed 100644
--- a/bin/pwd/pwd.c
+++ b/bin/pwd/pwd.c
@@ -82,7 +82,7 @@ main(argc, argv)
if (argc == 1) {
p = realpath(argv[0], buf);
if (p == NULL)
- err(1, argv[0]);
+ err(1, "%s", argv[0]);
(void)printf("%s\n", p);
} else if (argc == 0) {
p = getcwd(NULL, 0);