Coverity fix: sprintf is replaced by snprintf
[u/mrichter/AliRoot.git] / PHOS / AliPHOS.cxx
index 97b9104..7cded1e 100644 (file)
@@ -578,7 +578,7 @@ void AliPHOS::SetTreeAddress()
   // Links Hits in the Tree to Hits array
   TBranch *branch;
   char branchname[20];
-  sprintf(branchname,"%s",GetName());
+  snprintf(branchname,20,"%s",GetName());
   // Branch address for hit tree
     TTree *treeH = fLoader->TreeH();
   if (treeH) {