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

index c6821ff..821bcf9 100644 (file)
@@ -273,7 +273,7 @@ void AliEveTrackCounterEditor::DoActivate()
 
    char fname[200];
    TDatime dat;
-   sprintf(fname, "ScanSummary.%i.%i.txt", dat.GetDate(), dat.GetTime());
+   snprintf(fname, 200,"ScanSummary.%i.%i.txt", dat.GetDate(), dat.GetTime());
    fScanSummaryFile = new ofstream(fname);
    (*fScanSummaryFile) << "Scan summary" << std::endl;
    (*fScanSummaryFile) << "Scan started at " << dat.GetDate() << " " << dat.GetTime() << std::endl;