Eliminate a "format string is not a string literal" warning.

This commit is contained in:
Ian Lepore 2017-03-21 22:21:29 +00:00
parent 3507006763
commit 83157972d6

View File

@ -72,7 +72,7 @@ main(int argc, char **argv)
if (argc > 0) {
fd = open(argv[0], O_RDONLY);
if (fd < 0)
err(1, argv[0]);
err(1, "%s", argv[0]);
} else {
fd = 0;
}