From 884b3c671c1fc103eb7f6177c26d8a6b90b3afa8 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 28 Nov 2005 12:34:49 +0000 Subject: [PATCH] uses xmalloc() now [r6987] --- ir/tv/strcalc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ir/tv/strcalc.c b/ir/tv/strcalc.c index d682979cd..4bf554257 100644 --- a/ir/tv/strcalc.c +++ b/ir/tv/strcalc.c @@ -32,6 +32,7 @@ #include /* definition of LONG_MIN, used in sc_get_val_from_long */ #include "strcalc.h" +#include "xmalloc.h" /* * local definitions and macros @@ -1600,8 +1601,8 @@ void init_strcalc(int precision) calc_buffer_size = (precision / 2); max_value_size = (precision / 4); - calc_buffer = malloc(calc_buffer_size+1 * sizeof(char)); - output_buffer = malloc(bit_pattern_size+1 * sizeof(char)); + calc_buffer = xmalloc(calc_buffer_size+1 * sizeof(char)); + output_buffer = xmalloc(bit_pattern_size+1 * sizeof(char)); if (calc_buffer == NULL || output_buffer == NULL) { assert(0 && "malloc failed"); -- 2.20.1