]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
column: use xalloc libs
authorDave Reisner <d@falconindy.com>
Tue, 20 Dec 2011 13:36:02 +0000 (08:36 -0500)
committerKarel Zak <kzak@redhat.com>
Wed, 4 Jan 2012 12:53:40 +0000 (13:53 +0100)
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
text-utils/column.c

index 79d284221533123d790419f0b6a048ea0879eae6..c64268043409908ed626622acd412e92a133c7c9 100644 (file)
@@ -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);