projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix wrong sizeof on channel name copy
[lttng-tools.git]
/
lttng-sessiond
/
trace-ust.c
diff --git
a/lttng-sessiond/trace-ust.c
b/lttng-sessiond/trace-ust.c
index af78dc00086fdd506e175de11239b0325f8a0a4f..903a4430393641eccdd9b4367cd65b1bdbf4ff82 100644
(file)
--- 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 */
This page took
0.023325 seconds
and
4
git commands to generate.