]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MONITOR/deroot.cxx
Coverity fixes.
[u/mrichter/AliRoot.git] / MONITOR / deroot.cxx
index 2f8380ae52ce12343f9ec0aa46d5766af9555dd1..0afae0fcc27b1106d2b6642db33fa9d822164c85 100644 (file)
@@ -58,9 +58,9 @@ int deroot(const char *rootFileName, const char *dateFileName, const char *ddlFi
   size_t gdcSize;
   if (ddlFilesFolder) {
     char command[256];
-    sprintf(command, "rm -rf %s/raw%ld", ddlFilesFolder, gdcCounter);
+    snprintf(command, sizeof(command), "rm -rf %s/raw%ld", ddlFilesFolder, gdcCounter);
     gSystem->Exec(command);
-    sprintf(command, "%s/raw%ld", ddlFilesFolder, gdcCounter);
+    snprintf(command, sizeof(command), "%s/raw%ld", ddlFilesFolder, gdcCounter);
     if (gSystem->MakeDirectory(command) < 0) {
       cerr << "Can not create directory " << command << endl;
       return(1);