diff options
author | ed <ed@FreeBSD.org> | 2010-06-15 04:47:16 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2010-06-15 04:47:16 +0000 |
commit | f630934da70d4d34df892850a43110f60f7b2926 (patch) | |
tree | d77066c491c5840fd56e43debe9c20905ecb127d /usr.bin/wtmpcvt | |
parent | 21a9430e2b7fad7132f7a011690014a5d2053e41 (diff) | |
download | FreeBSD-src-f630934da70d4d34df892850a43110f60f7b2926.zip FreeBSD-src-f630934da70d4d34df892850a43110f60f7b2926.tar.gz |
err() takes a printf format.
Submitted by: Pawel Worach
Spotted by: clang
Diffstat (limited to 'usr.bin/wtmpcvt')
-rw-r--r-- | usr.bin/wtmpcvt/wtmpcvt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/wtmpcvt/wtmpcvt.c b/usr.bin/wtmpcvt/wtmpcvt.c index aa4e25e..c2ba681 100644 --- a/usr.bin/wtmpcvt/wtmpcvt.c +++ b/usr.bin/wtmpcvt/wtmpcvt.c @@ -113,10 +113,10 @@ main(int argc, char *argv[]) /* Open files. */ in = fopen(argv[1], "r"); if (in == NULL) - err(1, argv[1]); + err(1, "%s", argv[1]); out = fopen(argv[2], "w"); if (out == NULL) - err(1, argv[2]); + err(1, "%s", argv[2]); /* Process entries. */ while (fread(&ui, sizeof ui, 1, in) == 1) { |