]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOS.cxx
Coverity fix: sprintf is replaced by snprintf
[u/mrichter/AliRoot.git] / PHOS / AliPHOS.cxx
index 97b91042a46d51a44e2d7068dbf82fa1e1f3b89d..7cded1e7ade52ed29e1088620fbaad89402c73fb 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) {