summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Pennequin <nicolas.pennequin@free.fr>2007-02-14 15:22:13 +0000
committerNicolas Pennequin <nicolas.pennequin@free.fr>2007-02-14 15:22:13 +0000
commit2a4917c698031b8f899eea7d3941eda9885eea61 (patch)
treefddbcf26121e2460227d1bcde98430c6487a9cae
parent32878c0b5a0290c8651d35efb00b580a7bcb41fc (diff)
downloadrockbox-2a4917c698031b8f899eea7d3941eda9885eea61.tar.gz
rockbox-2a4917c698031b8f899eea7d3941eda9885eea61.tar.bz2
rockbox-2a4917c698031b8f899eea7d3941eda9885eea61.zip
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
-rw-r--r--apps/cuesheet.c4
1 files 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;