summaryrefslogtreecommitdiffstats
path: root/text-utils/column.c
diff options
context:
space:
mode:
authorDave Reisner2011-12-20 14:36:02 +0100
committerKarel Zak2012-01-04 13:53:40 +0100
commitcce4d25aedaaf55c8233e3537e1dbc494fd5626a (patch)
tree0c26c2c89fa317632ab8f91d2ec09d276142c369 /text-utils/column.c
parentlscpu: use xalloc libs (diff)
downloadkernel-qcow2-util-linux-cce4d25aedaaf55c8233e3537e1dbc494fd5626a.tar.gz
kernel-qcow2-util-linux-cce4d25aedaaf55c8233e3537e1dbc494fd5626a.tar.xz
kernel-qcow2-util-linux-cce4d25aedaaf55c8233e3537e1dbc494fd5626a.zip
column: use xalloc libs
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'text-utils/column.c')
-rw-r--r--text-utils/column.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text-utils/column.c b/text-utils/column.c
index 79d284221..c64268043 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);