From b42dc92c1003cb5a1912cd86c59fbaa3544a3e10 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 3 May 2011 16:46:05 -0400 Subject: [PATCH] Fix bug when finding session by name Signed-off-by: David Goulet --- ltt-sessiond/session.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ltt-sessiond/session.c b/ltt-sessiond/session.c index 54e19669e..6e19b372e 100644 --- a/ltt-sessiond/session.c +++ b/ltt-sessiond/session.c @@ -113,7 +113,7 @@ struct ltt_session *find_session_by_name(char *name) struct ltt_session *iter; cds_list_for_each_entry(iter, <t_session_list.head, list) { - if (strncmp(iter->name, name, strlen(iter->name)) == 0) { + if (strncmp(iter->name, name, strlen(name)) == 0) { found = 1; break; } -- 2.34.1