Coverity fix.
authorcvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 31 Jan 2011 13:50:43 +0000 (13:50 +0000)
committercvetan <cvetan@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 31 Jan 2011 13:50:43 +0000 (13:50 +0000)
MONITOR/AliQAHistNavigator.cxx

index 8509a75..777aa23 100644 (file)
@@ -474,7 +474,7 @@ Bool_t AliQAHistNavigator::GetListOfFiles()
         char fullName[1000];
         for (std::list<string>::iterator si=names.begin(); si!=names.end(); ++si)
         {
-          sprintf(fullName,"%s", si->c_str());
+          snprintf(fullName,sizeof(fullName),"%s", si->c_str());
           AliQADirList* f = new AliQADirList();
           f->SetName(fullName);
           fPListOfFiles->GetDirs()->AddLast(f);