Fix build.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1143 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
db8111373d
commit
2ba2b314d5
2
op_c.c
2
op_c.c
@ -203,7 +203,7 @@ T_Conversion_table * CT_new(int nbb_r,int nbb_g,int nbb_b)
|
|||||||
|
|
||||||
// Allocate the table
|
// Allocate the table
|
||||||
size=(n->rng_r)*(n->rng_g)*(n->rng_b);
|
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)
|
if (n->table == NULL)
|
||||||
{
|
{
|
||||||
// Not enough memory
|
// Not enough memory
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user