From 1b110e1bb85042be8b94d7eb81d9dfe8b561a304 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Thu, 28 Jul 2011 12:13:02 -0400 Subject: [PATCH] Fix bad strncmp length 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 7a7bf3e57..3131006f1 100644 --- a/ltt-sessiond/session.c +++ b/ltt-sessiond/session.c @@ -132,7 +132,7 @@ struct ltt_session *find_session_by_name(char *name) lock_session_list(); cds_list_for_each_entry(iter, <t_session_list.head, list) { - if (strncmp(iter->name, name, strlen(name)) == 0) { + if (strncmp(iter->name, name, NAME_MAX) == 0) { found = 1; break; } -- 2.34.1