summaryrefslogtreecommitdiffstats
path: root/text-utils/col.c
diff options
context:
space:
mode:
Diffstat (limited to 'text-utils/col.c')
-rw-r--r--text-utils/col.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text-utils/col.c b/text-utils/col.c
index c6b2bdf56..1ba195e24 100644
--- a/text-utils/col.c
+++ b/text-utils/col.c
@@ -243,7 +243,7 @@ int main(int argc, char **argv)
errno = 0;
if ((ch = getwchar()) == WEOF) {
if (errno == EILSEQ) {
- warn(_("failed on line %d"), max_line);
+ warn(_("failed on line %d"), max_line + 1);
ret = EXIT_FAILURE;
}
break;