1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-26 11:47:31 +00:00

Don't call err() with user data and without a format string

This commit is contained in:
Kris Kennaway 2000-11-26 08:50:12 +00:00
parent da4cd46eac
commit 0ab378def6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69195

View File

@ -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);