Skip to content
Snippets Groups Projects
Commit 7ca970ee authored by Rene Brun's avatar Rene Brun
Browse files

e snprintf

git-svn-id: http://root.cern.ch/svn/root/trunk@35941 27541ba8-7e3a-0410-8455-c3a389f83636
parent f35f3aa0
Branches
Tags
No related merge requests found
...@@ -475,7 +475,7 @@ void TTreeCloner::CopyProcessIds() ...@@ -475,7 +475,7 @@ void TTreeCloner::CopyProcessIds()
pids->AddAtAndExpand(pid,npids); pids->AddAtAndExpand(pid,npids);
pid->IncrementCount(); pid->IncrementCount();
char name[32]; char name[32];
sprintf(name,"ProcessID%d",npids); snprintf(name,32,"ProcessID%d",npids);
pid->Write(name); pid->Write(name);
tofile->IncrementProcessIDs(); tofile->IncrementProcessIDs();
if (gDebug > 0) { if (gDebug > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment