From 2ba2b314d57916ca5fe0abf5fde736da519b8e08 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 2 Nov 2009 20:01:40 +0000 Subject: [PATCH] Fix build. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1143 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- op_c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/op_c.c b/op_c.c index 415008ce..fa3cbb8f 100644 --- a/op_c.c +++ b/op_c.c @@ -203,7 +203,7 @@ T_Conversion_table * CT_new(int nbb_r,int nbb_g,int nbb_b) // Allocate the table size=(n->rng_r)*(n->rng_g)*(n->rng_b); - n->table=(byte *)malloc(size, 1); + n->table=(byte *)calloc(size, 1); if (n->table == NULL) { // Not enough memory