Parallella plat.: close_packet(): fix array indexing
[deliverable/barectf.git] / platforms / parallella / barectf-platform-parallella.c
index 39f7d0e0367cee48ce3a55e84dbb1389d0b55166..35129250cca4614b0135d24aaa6f6c60027997e2 100644 (file)
@@ -142,7 +142,7 @@ static void close_packet(void *data)
         * buffer) for this packet, so "upload" it to shared memory now.
         */
        index = get_prod_index(tracing_ctx) & (RINGBUF_SZ - 1);
-       dst = (void *) &(tracing_ctx->ringbuf->packets[index]);
+       dst = (void *) &(tracing_ctx->ringbuf->packets[index][0]);
        memcpy(dst, tracing_ctx->local_packet, PACKET_SZ);
 
        /* update producer index after copy */
This page took 0.023801 seconds and 4 git commands to generate.