diff options
author | Karel Zak <kzak@redhat.com> | 2018-03-27 10:40:13 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2018-03-27 11:34:11 +0200 |
commit | 5b6fa6063990017f3384476537106caa9e3f5867 (patch) | |
tree | 5e646ed3b8a4f6c4f08655197d4b060aad92fa00 | |
parent | 8bef60e497f769792af9b756dfb91f8696956db0 (diff) | |
download | util-linux-stable/v2.30.tar.gz |
column: fix leading space characters bugstable/v2.30
The bug has been introduced during column(1) rewrite. The function
read_input() need to skip leading space only temporary to detect empty
lines, but the rest of the code has to use the original buffer (line).
Addresses: https://github.com/karelzak/util-linux/issues/575
Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1560283
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r-- | text-utils/column.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/text-utils/column.c b/text-utils/column.c index 5eb0de1ae..d6a6385e3 100644 --- a/text-utils/column.c +++ b/text-utils/column.c @@ -452,7 +452,7 @@ static int read_input(struct column_control *ctl, FILE *fp) if (!str || !*str) continue; - wcs = mbs_to_wcs(str); + wcs = mbs_to_wcs(buf); if (!wcs) err(EXIT_FAILURE, _("read failed")); |