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

use snprintf

git-svn-id: http://root.cern.ch/svn/root/trunk@35915 27541ba8-7e3a-0410-8455-c3a389f83636
parent 1ca320ef
No related branches found
No related tags found
No related merge requests found
......@@ -161,7 +161,7 @@ const char *TPrimary::GetTitle() const
//return title of primary particle
static char title[128];
Float_t pmom = TMath::Sqrt(fPx*fPx+fPy*fPy+fPz*fPz);
sprintf(title,"pmom=%f GeV",pmom);
snprintf(title,128,"pmom=%f GeV",pmom);
return title;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment