From: Dave Reisner Date: Tue, 20 Dec 2011 13:36:02 +0000 (-0500) Subject: column: use xalloc libs X-Git-Tag: v2.21-rc1~78 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cce4d25aedaaf55c8233e3537e1dbc494fd5626a;p=thirdparty%2Futil-linux.git column: use xalloc libs Signed-off-by: Dave Reisner --- diff --git a/text-utils/column.c b/text-utils/column.c index 79d2842215..c642680434 100644 --- a/text-utils/column.c +++ b/text-utils/column.c @@ -395,7 +395,7 @@ static wchar_t *mbs_to_wcs(const char *s) n = mbstowcs((wchar_t *)0, s, 0); if (n < 0) return NULL; - wcs = malloc((n + 1) * sizeof(wchar_t)); + wcs = xmalloc((n + 1) * sizeof(wchar_t)); if (!wcs) return NULL; n = mbstowcs(wcs, s, n + 1);