git-svn-id: http://ltt.polymtl.ca/svn@130 04897980-b3bd-0310-b5e0-8ef037075253
authoryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 23 Jul 2003 18:19:29 +0000 (18:19 +0000)
committeryangxx <yangxx@04897980-b3bd-0310-b5e0-8ef037075253>
Wed, 23 Jul 2003 18:19:29 +0000 (18:19 +0000)
ltt/branches/poly/ltt/tracefile.c

index f1751514d51f85bf090665744596f1ade3bc7db6..808649173801afb16cf468180e861bf12e1512bc 100644 (file)
@@ -150,7 +150,7 @@ void ltt_tracefile_open_control(LttTrace *t, char * control_name)
   g_ptr_array_add(t->control_tracefiles,tf);
 
   //parse facilities tracefile to get base_id
-  if(strcmp(control_name,"facilities") ==0){
+  if(strcmp(&control_name[strlen(control_name)-10],"facilities") ==0){
     while(1){
       ev = ltt_tracefile_read(tf);
       if(!ev)return; // end of file
This page took 0.024188 seconds and 4 git commands to generate.