summaryrefslogtreecommitdiffstats
path: root/text-utils
diff options
context:
space:
mode:
authorKarel Zak2019-02-05 18:07:26 +0100
committerKarel Zak2019-02-05 18:07:26 +0100
commitcc06250f116d899f656b0c8415cd955c01ef63a1 (patch)
treeb2b0507b1cac49f130208669a35a7126584eb093 /text-utils
parentdocs: add col(1) to TODO (diff)
downloadkernel-qcow2-util-linux-cc06250f116d899f656b0c8415cd955c01ef63a1.tar.gz
kernel-qcow2-util-linux-cc06250f116d899f656b0c8415cd955c01ef63a1.tar.xz
kernel-qcow2-util-linux-cc06250f116d899f656b0c8415cd955c01ef63a1.zip
col: improve error message, update regression test
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'text-utils')
-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;