//__________________________________________________________________________
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
//
// 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");
{
// 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(")");
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)