Fix wrong sizeof on channel name copy
authorDavid Goulet <david.goulet@polymtl.ca>
Wed, 7 Dec 2011 21:18:44 +0000 (16:18 -0500)
committerDavid Goulet <david.goulet@polymtl.ca>
Wed, 7 Dec 2011 21:18:44 +0000 (16:18 -0500)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
lttng-sessiond/trace-ust.c

index af78dc00086fdd506e175de11239b0325f8a0a4f..903a4430393641eccdd9b4367cd65b1bdbf4ff82 100644 (file)
@@ -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 */
This page took 0.02563 seconds and 4 git commands to generate.