Fix cmsg handling
[lttng-ust.git] / tests / ust-basic-tracing / ust-basic-tracing.c
index 583179c1e9b03354a20fe51fbe73179df4703840..8e0847fa41c5828828bc9e0a6d94872402b441bb 100644 (file)
@@ -195,7 +195,7 @@ static int lttcomm_recv_fd(int sock)
        }
        /* this is our fd */
        for (i = 0; i < sizeof(int); i++)
-               tmp.vc[i] = CMSG_DATA(cmsg)[0];
+               tmp.vc[i] = CMSG_DATA(cmsg)[i];
        ret = tmp.vi;
        printf("received fd %d\n", ret);
 end:
This page took 0.022998 seconds and 4 git commands to generate.