summaryrefslogtreecommitdiff
path: root/src/input/input_cdda.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_cdda.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_cdda.c')
-rw-r--r--src/input/input_cdda.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/input_cdda.c b/src/input/input_cdda.c
index 8bb35effd..fe4c7f932 100644
--- a/src/input/input_cdda.c
+++ b/src/input/input_cdda.c
@@ -2450,7 +2450,7 @@ static int cdda_plugin_open (input_plugin_t *this_gen ) {
if(this->cddb.num_tracks) {
int t;
- this->cddb.track = (trackinfo_t *) xine_xmalloc(sizeof(trackinfo_t) * this->cddb.num_tracks);
+ this->cddb.track = (trackinfo_t *) xine_xcalloc(this->cddb.num_tracks, sizeof(trackinfo_t));
for(t = 0; t < this->cddb.num_tracks; t++) {
int length = (toc->toc_entries[t].first_frame_minute * CD_SECONDS_PER_MINUTE +