From 3cc2ade8264e9e0533e9683792fa1b67a9de5082 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 2 Mar 2017 14:04:47 +0100 Subject: column: don't ignore mbs_to_wcs() errors Signed-off-by: Karel Zak --- text-utils/column.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'text-utils/column.c') diff --git a/text-utils/column.c b/text-utils/column.c index 51a5b8efd..d91236959 100644 --- a/text-utils/column.c +++ b/text-utils/column.c @@ -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; -- cgit v1.2.3-55-g7522