From: David Goulet Date: Tue, 3 May 2011 20:46:05 +0000 (-0400) Subject: Fix bug when finding session by name X-Git-Tag: v2.0-pre1~150 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b42dc92c1003cb5a1912cd86c59fbaa3544a3e10;p=lttng-tools.git Fix bug when finding session by name Signed-off-by: David Goulet --- 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; }