From: Andre Noll Date: Sun, 20 Apr 2008 18:01:22 +0000 (+0200) Subject: audiod.c: Use correct size for filter node array. X-Git-Tag: v0.3.3~65 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=37277570a92b1303da006442b68c0c24b6a1fcf9;p=paraslash.git 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. --- 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;