column: don't ignore mbs_to_wcs() errors

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2017-03-02 14:04:47 +01:00
parent 4219aa3756
commit 3cc2ade826
1 changed files with 2 additions and 0 deletions

View File

@ -444,6 +444,8 @@ static int input(struct column_control *ctl, FILE *fp)
maxents * sizeof(wchar_t *));
}
ctl->ents[ctl->nents] = mbs_to_wcs(str);
if (!ctl->ents[ctl->nents])
err(EXIT_FAILURE, _("read failed"));
len = width(ctl->ents[ctl->nents]);
if (ctl->maxlength < len)
ctl->maxlength = len;