Fix bug when finding session by name
authorDavid Goulet <david.goulet@polymtl.ca>
Tue, 3 May 2011 20:46:05 +0000 (16:46 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Tue, 3 May 2011 20:46:05 +0000 (16:46 -0400)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
ltt-sessiond/session.c

index 54e19669efd9e78c48578b0207d660f2146cbce4..6e19b372e4c2edeb4b60c5b32dc906cbaa41b8a9 100644 (file)
@@ -113,7 +113,7 @@ struct ltt_session *find_session_by_name(char *name)
        struct ltt_session *iter;
 
        cds_list_for_each_entry(iter, &ltt_session_list.head, list) {
-               if (strncmp(iter->name, name, strlen(iter->name)) == 0) {
+               if (strncmp(iter->name, name, strlen(name)) == 0) {
                        found = 1;
                        break;
                }
This page took 0.025513 seconds and 4 git commands to generate.