ansi2text.c(main): pass missing eval argument to err()

This commit is contained in:
Mike Small 2020-12-14 20:07:26 -05:00
parent 550135fcff
commit a5b456affb
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
2020-12-14 Michael Small <smallm@sdf.org>
* ansi2text.c: include err.h to avoid implicit declartion warning
(main): pass missing eval argument to err()
2020-12-14 Michael Small <smallm@sdf.org>

View File

@ -349,7 +349,7 @@ main(int argc, char **argv) {
if (*argv) {
if ((fdin = open(*argv, O_RDONLY)) < 0)
err("Error opening file: %s", *argv);
err(1, "Error opening file: %s", *argv);
}
screensize = cols * lines;