]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ITS/AliITSBadChannelsAuxSPD.cxx
bug in part v5-02-Releaseof old data reconstruction fixed
[u/mrichter/AliRoot.git] / ITS / AliITSBadChannelsAuxSPD.cxx
index 91df172b2d25909fd97b7142cf74603e53f67e84..07dc9792f47d3fc2aa6ef5e14bc96ec9d4038a23 100644 (file)
@@ -291,7 +291,7 @@ Int_t AliITSBadChannelsAuxSPD::GetNumberOfBadChannels(Int_t* &badChannelsArray,
 
 //__________________________________________________________________________
 Bool_t AliITSBadChannelsAuxSPD::CreateHTMLReport(char *name, Int_t* &badChannelsArray, Int_t* &indexArray,
-                                                const Int_t indexArraySize, TString *buffer, Bool_t tags)
+                                                Int_t indexArraySize, TString *buffer, Bool_t tags)
 {
   // Create an HTML report from the bad channels array
   //
@@ -338,11 +338,11 @@ Bool_t AliITSBadChannelsAuxSPD::CreateHTMLReport(char *name, Int_t* &badChannels
 
          // Create report
          buffer->Append("SPD module = ");
-         sprintf(temp,"%d",module);
+         snprintf(temp,9,"%d",module);
          buffer->Append(temp);
          buffer->Append("<br>\n");
          buffer->Append("Number of bad channels = ");
-         sprintf(temp,"%d",size);
+         snprintf(temp,9,"%d",size);
          buffer->Append(temp);
 
          tags ? buffer->Append("<br>\n") : buffer->Append("\n");
@@ -355,10 +355,10 @@ Bool_t AliITSBadChannelsAuxSPD::CreateHTMLReport(char *name, Int_t* &badChannels
            {
              // Create and add the current channel
              buffer->Append("(");
-             sprintf(temp,"%d",badChannelsArray[position++]);
+             snprintf(temp,10,"%d",badChannelsArray[position++]);
              buffer->Append(temp);
              buffer->Append(", ");
-             sprintf(temp,"%d",badChannelsArray[position++]);
+             snprintf(temp,10,"%d",badChannelsArray[position++]);
              buffer->Append(temp);
              buffer->Append(")");
 
@@ -388,19 +388,19 @@ Bool_t AliITSBadChannelsAuxSPD::CreateHTMLReport(char *name, Int_t* &badChannels
   tags ? buffer->Append("<br>\n") : buffer->Append("\n");
 
   buffer->Append("Total number of bad channels = ");
-  sprintf(temp,"%d",totalNumberOfBadChannels);
+  snprintf(temp,10,"%d",totalNumberOfBadChannels);
   buffer->Append(temp);
 
   tags ? buffer->Append("<br>\n") : buffer->Append("\n");
 
   buffer->Append("Number of modules with bad channels = ");
-  sprintf(temp,"%d",numberOfModulesWithBadChannels);
+  snprintf(temp,10,"%d",numberOfModulesWithBadChannels);
   buffer->Append(temp);
 
   tags ? buffer->Append("<br>\n") : buffer->Append("\n");
 
   buffer->Append("Number of modules = ");
-  sprintf(temp,"%d",indexArraySize);
+  snprintf(temp,10,"%d",indexArraySize);
   buffer->Append(temp);
 
   if (tags)