]> Creatis software - gdcm.git/commitdiff
COMP: make the code compile with c++ compiler
authormalaterre <malaterre>
Sun, 12 Jun 2005 15:53:21 +0000 (15:53 +0000)
committermalaterre <malaterre>
Sun, 12 Jun 2005 15:53:21 +0000 (15:53 +0000)
src/gdcmjpegls/Decoder/decoder.c

index 3fefa0a..4f7bbb5 100644 (file)
@@ -316,7 +316,7 @@ int initialize(int argc, char *argv[])
   int pos;   /* position in the file, after the header */
 
   for (i=0;i<MAX_COMPONENTS;i++) {
-    c_outfilename[i]=malloc(strlen(OUTFILE)+20);
+    c_outfilename[i]=(char*)malloc(strlen(OUTFILE)+20);
     sprintf(c_outfilename[i],"%s%d.out",OUTFILE,i+1);
   }