util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] column: use xalloc libs
@ 2011-12-20 13:36 Dave Reisner
  2011-12-20 13:36 ` [PATCH 2/3] lscpu: " Dave Reisner
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Dave Reisner @ 2011-12-20 13:36 UTC (permalink / raw)
  To: util-linux; +Cc: Dave Reisner

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
---
 text-utils/column.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/text-utils/column.c b/text-utils/column.c
index 79d2842..c642680 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);
-- 
1.7.8


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-01-04 13:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-20 13:36 [PATCH 1/3] column: use xalloc libs Dave Reisner
2011-12-20 13:36 ` [PATCH 2/3] lscpu: " Dave Reisner
2012-01-04 13:37   ` Karel Zak
2011-12-20 13:36 ` [PATCH 3/3] tools/checkxalloc.sh: add new code checking script Dave Reisner
2012-01-04 13:39   ` Karel Zak
2011-12-20 14:13 ` [PATCH 1/3] column: use xalloc libs Davidlohr Bueso
2012-01-04 13:37   ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).