Fix array copy length
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 24 Sep 2011 22:00:20 +0000 (18:00 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 24 Sep 2011 22:00:20 +0000 (18:00 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/ust/lttng-tracepoint-event.h

index ab9c25252d08afdf105e1a51b07bcc1ad7902a0b..4c63ad533c1140f0ea03fe72e9bc733b19a516a5 100644 (file)
@@ -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,         \
This page took 0.024541 seconds and 4 git commands to generate.