summaryrefslogtreecommitdiff
path: root/src/input/input_dvd.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-14 18:30:19 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-04-14 18:30:19 +0200
commite0565eaa178fc0ad4eabcbc48c50085f95bb56a8 (patch)
tree2538a0670c63086213af10fcc8f56532ce7a5792 /src/input/input_dvd.c
parentdc36f8d045cf4f723c44766f44c92e1810e37f4f (diff)
downloadxine-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/input/input_dvd.c')
-rw-r--r--src/input/input_dvd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/input_dvd.c b/src/input/input_dvd.c
index ac09e934b..1a8861289 100644
--- a/src/input/input_dvd.c
+++ b/src/input/input_dvd.c
@@ -1629,7 +1629,7 @@ static input_plugin_t *dvd_class_get_instance (input_class_t *class_gen, xine_st
this->mem_stack = 0;
this->mem_stack_max = 1024;
- this->mem = xine_xmalloc(sizeof(unsigned char *) * this->mem_stack_max);
+ this->mem = xine_xcalloc(this->mem_stack_max, sizeof(unsigned char *));
if (!this->mem) {
free(this);
return NULL;