Coverity
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Feb 2011 10:56:04 +0000 (10:56 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 2 Feb 2011 10:56:04 +0000 (10:56 +0000)
EVE/EveBase/AliEveV0Editor.cxx

index 99090f1..95af501 100644 (file)
@@ -124,7 +124,7 @@ void AliEveV0Editor::DisplayDetailed()
   // This part is for getting the different objects to display
   //
   char displayInfo[100] = {0};
-  sprintf(displayInfo,"pt = %.3f",fM->GetPt());
+  snprintf(displayInfo,100,"pt = %.3f",fM->GetPt());
   TEveLine *lv0TransverseMomentumDirection = new TEveLine(displayInfo);
   lv0TransverseMomentumDirection->SetLineColor(kOrange+8);
   lv0TransverseMomentumDirection->SetLineWidth(2);