]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Temporary replacement of Form by sprintf to avoid problems on some platforms (alpahli...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Nov 2006 14:23:29 +0000 (14:23 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 22 Nov 2006 14:23:29 +0000 (14:23 +0000)
EVE/macros/alieve_init.C

index 19f09a6a462e1c9193193867530039867934f7dc..c809c0edbb7007f430d0164ef3fe1559b76f3db6 100644 (file)
@@ -25,7 +25,13 @@ void alieve_init(const Text_t* path=".", Int_t event=0,
     while((filename = gSystem->GetDirEntry(dirhandle)) != 0) {
       if(re.Match(filename)) {
        printf("Adding macro '%s'\n", filename);
-       f->Add(new Reve::RMacro(Form("%s/%s", macdir.Data(), filename)));
+       //PH The line below is replaced waiting for a fix in Root
+       //PH which permits to use variable siza arguments in CINT
+       //PH on some platforms (alphalinuxgcc, solariscc5, etc.)
+       // f->Add(new Reve::RMacro(Form("%s/%s", macdir.Data(), filename)));
+       char fullName[1000];
+       sprintf(fullName,"%s/%s", macdir.Data(), filename);
+       f->Add(new Reve::RMacro(fullName));
       }
     }
   }