X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmHeader.cxx;h=a398ad35926dfdb3d1d2a461c8b36a2394ae0bbc;hb=b532ad866844f8fd600baa08a748d0233a2dc2ca;hp=c93c47d91b471f420b419651a6541aceadfe1991;hpb=0add622a61a208e9ed5f55b1b48e373b6bf38f39;p=gdcm.git diff --git a/src/gdcmHeader.cxx b/src/gdcmHeader.cxx index c93c47d9..a398ad35 100644 --- a/src/gdcmHeader.cxx +++ b/src/gdcmHeader.cxx @@ -1,4 +1,4 @@ -// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.cxx,v 1.105 2003/10/31 10:38:34 jpr Exp $ +// $Header: /cvs/public/gdcm/src/Attic/gdcmHeader.cxx,v 1.106 2003/10/31 11:29:59 malaterre Exp $ #include "gdcmHeader.h" @@ -2246,7 +2246,8 @@ void * gdcmHeader::GetLUTRGBA(void) { char *LUTRGBA = (char *)calloc(1024,1); // 256 * 4 (R, G, B, Alpha) if (!LUTRGBA) { return NULL; - } + } + memset(LUTRGBA, 0, 1024); // Bits Allocated int nb; std::string str_nb = GetPubElValByNumber(0x0028,0x0100); @@ -2270,23 +2271,25 @@ void * gdcmHeader::GetLUTRGBA(void) { // and fix the code // We give up the checking to avoid some overhead char *a; - a= LUTRGBA+debR; - for(int i=0;i