From 69851cf5017c8c8cd2d6ff67592d59387510d7a7 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sat, 24 Sep 2011 18:00:20 -0400 Subject: [PATCH] Fix array copy length Signed-off-by: Mathieu Desnoyers --- include/ust/lttng-tracepoint-event.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ust/lttng-tracepoint-event.h b/include/ust/lttng-tracepoint-event.h index ab9c252..4c63ad5 100644 --- a/include/ust/lttng-tracepoint-event.h +++ b/include/ust/lttng-tracepoint-event.h @@ -403,7 +403,7 @@ static inline size_t __event_get_align__##_name(_proto) \ #undef ctf_array_encoded #define ctf_array_encoded(_type, _item, _src, _length, _encoding) \ lib_ring_buffer_align_ctx(&ctx, lttng_alignof(_type)); \ - __chan->ops->event_write(&ctx, _src, _length); + __chan->ops->event_write(&ctx, _src, sizeof(_type) * (_length)); #undef ctf_sequence_encoded #define ctf_sequence_encoded(_type, _item, _src, _length_type, \ -- 2.34.1