]> 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 3fefa0a7078e37a38a531b5f59ed0f8a44da5e05..4f7bbb5ef4f2dfa119f2f24107b99931e7d8e32f 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);
   }