From: David Goulet Date: Wed, 7 Dec 2011 21:18:44 +0000 (-0500) Subject: Fix wrong sizeof on channel name copy X-Git-Tag: v2.0-pre15~22 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0a1459bbc48796c0891c53d9ce0fde62d91dc69a;p=lttng-tools.git Fix wrong sizeof on channel name copy Signed-off-by: David Goulet --- diff --git a/lttng-sessiond/trace-ust.c b/lttng-sessiond/trace-ust.c index af78dc000..903a44303 100644 --- a/lttng-sessiond/trace-ust.c +++ b/lttng-sessiond/trace-ust.c @@ -158,7 +158,7 @@ struct ltt_ust_channel *trace_ust_create_channel(struct lttng_channel *chan, } /* Copy channel name */ - strncpy(luc->name, chan->name, sizeof(&luc->name)); + strncpy(luc->name, chan->name, sizeof(luc->name)); luc->name[LTTNG_UST_SYM_NAME_LEN - 1] = '\0'; /* Init node */