summaryrefslogtreecommitdiffstats
path: root/text-utils/column.c
diff options
context:
space:
mode:
Diffstat (limited to 'text-utils/column.c')
-rw-r--r--text-utils/column.c2
1 files changed, 2 insertions, 0 deletions
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;