diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-14 18:30:19 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-04-14 18:30:19 +0200 |
commit | e0565eaa178fc0ad4eabcbc48c50085f95bb56a8 (patch) | |
tree | 2538a0670c63086213af10fcc8f56532ce7a5792 /src/post | |
parent | dc36f8d045cf4f723c44766f44c92e1810e37f4f (diff) | |
download | xine-lib-e0565eaa178fc0ad4eabcbc48c50085f95bb56a8.tar.gz xine-lib-e0565eaa178fc0ad4eabcbc48c50085f95bb56a8.tar.bz2 |
Use xine_xcalloc instead of xine_xmalloc when mutiplying the number of elements by the size of the single element.
Diffstat (limited to 'src/post')
-rw-r--r-- | src/post/mosaico/mosaico.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/post/mosaico/mosaico.c b/src/post/mosaico/mosaico.c index 40173bd5d..cc7fefe2c 100644 --- a/src/post/mosaico/mosaico.c +++ b/src/post/mosaico/mosaico.c @@ -160,7 +160,7 @@ static post_plugin_t *mosaico_open_plugin(post_class_t *class_gen, int inputs, _x_post_init(&this->post, 0, inputs); - this->pip = (mosaico_pip_t *)xine_xmalloc(sizeof(mosaico_pip_t) * (inputs - 1)); + this->pip = (mosaico_pip_t *)xine_xcalloc((inputs - 1), sizeof(mosaico_pip_t)); this->pip_count = inputs - 1; pthread_cond_init(&this->vpts_limit_changed, NULL); |