summaryrefslogtreecommitdiff
path: root/apps/cuesheet.c
diff options
context:
space:
mode:
authorAndree Buschmann <AndreeBuschmann@t-online.de>2011-08-26 15:52:22 +0000
committerAndree Buschmann <AndreeBuschmann@t-online.de>2011-08-26 15:52:22 +0000
commit9931b3c7a812ab58884e5ae5f17fcd1b2e81514f (patch)
tree9dc9c106d32a7814a61700bd2a2eb8b1238f5072 /apps/cuesheet.c
parentdbee923b3484cab8ca3ce47433a0a1f914b3ea84 (diff)
downloadrockbox-9931b3c7a812ab58884e5ae5f17fcd1b2e81514f.tar.gz
rockbox-9931b3c7a812ab58884e5ae5f17fcd1b2e81514f.zip
Avoid overflow in cuesheet marker positioning. Fixes FS#12246. Thanks to Nick Peskett.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30359 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/cuesheet.c')
-rw-r--r--apps/cuesheet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/cuesheet.c b/apps/cuesheet.c
index a6831fa97d..afe9531ce7 100644
--- a/apps/cuesheet.c
+++ b/apps/cuesheet.c
@@ -364,7 +364,7 @@ void cue_draw_markers(struct screen *screen, struct cuesheet *cue,
364 int i,xi; 364 int i,xi;
365 for (i=1; i < cue->track_count; i++) 365 for (i=1; i < cue->track_count; i++)
366 { 366 {
367 xi = x + (w * cue->tracks[i].offset)/tracklen; 367 xi = x + (w * (long long)cue->tracks[i].offset)/tracklen;
368 draw_veritcal_line_mark(screen, xi, y, h); 368 draw_veritcal_line_mark(screen, xi, y, h);
369 } 369 }
370} 370}