]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix for coverity
authordecaro <decaro@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Mar 2011 10:11:39 +0000 (10:11 +0000)
committerdecaro <decaro@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 7 Mar 2011 10:11:39 +0000 (10:11 +0000)
TOF/AliTOFDDLRawData.cxx

index 77d447ffe5c0a98201c2805decc93c9897572dbc..34d4cc861cedf9696289d863b4bc35cd8f85fa4f 100644 (file)
@@ -172,8 +172,6 @@ Int_t AliTOFDDLRawData::RawDataTOF(TBranch* branch)
 
   fTOFdigitArray = * (TClonesArray**) branch->GetAddress();
 
-  const Int_t kDimension=16;
-  char fileName[kDimension-1];
   AliFstream* outfile;      // logical name of the output file 
 
   //AliRawDataHeader header;
@@ -198,7 +196,8 @@ Int_t AliTOFDDLRawData::RawDataTOF(TBranch* branch)
   //loop over TOF DDL files
   for (nDDL=0; nDDL<AliDAQ::NumberOfDdls("TOF"); nDDL++) {
 
-    strncpy(fileName,AliDAQ::DdlFileName("TOF",nDDL),kDimension); //The name of the output file
+    char fileName[256]="";
+    strncpy(fileName,AliDAQ::DdlFileName("TOF",nDDL),255); //The name of the output file
 
     outfile = new AliFstream(fileName);
     //iDDL = fTOFrawStream->GetDDLnumberPerSector(nDDL);