summaryrefslogtreecommitdiffstats
path: root/bin/pwd
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-11-26 08:50:12 +0000
committerkris <kris@FreeBSD.org>2000-11-26 08:50:12 +0000
commit7af08112ad8ecdb25a8f090af6b776e194afe858 (patch)
tree215c475e187da3c83a5b2299ac43d27c773ab6ce /bin/pwd
parent5d942789bc55036cd4482f8e510e743480410afc (diff)
downloadFreeBSD-src-7af08112ad8ecdb25a8f090af6b776e194afe858.zip
FreeBSD-src-7af08112ad8ecdb25a8f090af6b776e194afe858.tar.gz
Don't call err() with user data and without a format string
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 849c309..b839617 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);
OpenPOWER on IntegriCloud