From cc06250f116d899f656b0c8415cd955c01ef63a1 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 5 Feb 2019 18:07:26 +0100 Subject: col: improve error message, update regression test Signed-off-by: Karel Zak --- text-utils/col.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'text-utils/col.c') 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; -- cgit v1.2.3-55-g7522