Replacing rindex by strrchr
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Jan 2004 14:05:23 +0000 (14:05 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 23 Jan 2004 14:05:23 +0000 (14:05 +0000)
MONITOR/AliMonitorProcess.cxx

index 8e48096..bf2eded 100644 (file)
@@ -328,7 +328,7 @@ Bool_t AliMonitorProcess::CheckForNewFile()
   while (Grid_Result_t* resultEntry = result->Next()) {
     const char* entry = resultEntry->name.c_str();
 #endif
-    if (rindex(entry, '/')) entry = rindex(entry, '/')+1;
+    if (strrchr(entry, '/')) entry = strrchr(entry, '/')+1;
     // entry = host_date_time.root
     TString entryCopy(entry);
     char* p = const_cast<char*>(entryCopy.Data());