Fix array size in kconsumer add stream
authorDavid Goulet <david.goulet@polymtl.ca>
Tue, 25 Oct 2011 19:26:09 +0000 (15:26 -0400)
committerDavid Goulet <david.goulet@polymtl.ca>
Tue, 25 Oct 2011 19:26:09 +0000 (15:26 -0400)
Signed-off-by: David Goulet <david.goulet@polymtl.ca>
liblttng-kconsumer/lttng-kconsumer.c

index c4ebb013e315cbbd8fe554bcb042dda348af88f4..40745178134ab89b4db597ad1ed4ef45e8151dff 100644 (file)
@@ -236,7 +236,7 @@ int lttng_kconsumer_recv_cmd(struct lttng_consumer_local_data *ctx,
        case LTTNG_CONSUMER_ADD_STREAM:
        {
                struct lttng_consumer_stream *new_stream;
-               int fds[1];
+               int fds[2];
                size_t nb_fd = 1;
 
                /* block */
This page took 0.02625 seconds and 4 git commands to generate.