From: David Goulet Date: Tue, 25 Oct 2011 19:26:09 +0000 (-0400) Subject: Fix array size in kconsumer add stream X-Git-Tag: v2.0-pre15~185 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=147466ee4c90f00375828135def25bc7f25baaee;p=lttng-tools.git Fix array size in kconsumer add stream Signed-off-by: David Goulet --- diff --git a/liblttng-kconsumer/lttng-kconsumer.c b/liblttng-kconsumer/lttng-kconsumer.c index c4ebb013e..407451781 100644 --- a/liblttng-kconsumer/lttng-kconsumer.c +++ b/liblttng-kconsumer/lttng-kconsumer.c @@ -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 */