From: Mathieu Desnoyers Date: Sat, 24 Sep 2011 22:00:20 +0000 (-0400) Subject: Fix array copy length X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=69851cf5017c8c8cd2d6ff67592d59387510d7a7;p=ust.git Fix array copy length Signed-off-by: Mathieu Desnoyers --- 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, \