From 2a4917c698031b8f899eea7d3941eda9885eea61 Mon Sep 17 00:00:00 2001 From: Nicolas Pennequin Date: Wed, 14 Feb 2007 15:22:13 +0000 Subject: [PATCH] Oops, no need to allocate that much memory. Thanks to Lear for noticing this. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12306 a1c6a512-1295-4272-9138-f99709370657 --- apps/cuesheet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/cuesheet.c b/apps/cuesheet.c index 6db3528cad..a309b95873 100644 --- a/apps/cuesheet.c +++ b/apps/cuesheet.c @@ -44,8 +44,8 @@ void cuesheet_init(void) { if (global_settings.cuesheet) { - curr_cue = (struct cuesheet *)buffer_alloc(MAX_TRACKS * sizeof(struct cuesheet)); - temp_cue = (struct cuesheet *)buffer_alloc(MAX_TRACKS * sizeof(struct cuesheet)); + curr_cue = (struct cuesheet *)buffer_alloc(sizeof(struct cuesheet)); + temp_cue = (struct cuesheet *)buffer_alloc(sizeof(struct cuesheet)); } else { curr_cue = NULL; temp_cue = NULL;