From 37277570a92b1303da006442b68c0c24b6a1fcf9 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 20 Apr 2008 20:01:22 +0200 Subject: [PATCH] audiod.c: Use correct size for filter node array. The previous code worked only by accident because struct filter_chain is larger than struct filter_node. --- audiod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audiod.c b/audiod.c index f4ff3ed3..7afff93e 100644 --- a/audiod.c +++ b/audiod.c @@ -275,7 +275,7 @@ static void open_filters(int slot_num) return; PARA_INFO_LOG("opening %s filters\n", audio_formats[s->format]); s->fc = para_calloc(sizeof(struct filter_chain)); - s->fc->filter_nodes = para_malloc(nf * sizeof(struct filter_chain)); + s->fc->filter_nodes = para_malloc(nf * sizeof(struct filter_node)); s->fc->inbuf = s->receiver_node->buf; s->fc->in_loaded = &s->receiver_node->loaded; s->fc->input_error = &s->receiver_node->task.error; -- 2.39.2