projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75e8c5a
)
Fix wrong sizeof on channel name copy
author
David Goulet
<david.goulet@polymtl.ca>
Wed, 7 Dec 2011 21:18:44 +0000
(16:18 -0500)
committer
David 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
patch
|
blob
|
blame
|
history
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.02563 seconds
and
4
git commands to generate.