diff options
author | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-08-26 15:52:22 +0000 |
---|---|---|
committer | Andree Buschmann <AndreeBuschmann@t-online.de> | 2011-08-26 15:52:22 +0000 |
commit | 9931b3c7a812ab58884e5ae5f17fcd1b2e81514f (patch) | |
tree | 9dc9c106d32a7814a61700bd2a2eb8b1238f5072 /apps/cuesheet.c | |
parent | dbee923b3484cab8ca3ce47433a0a1f914b3ea84 (diff) |
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.c | 2 |
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, int i,xi; for (i=1; i < cue->track_count; i++) { - xi = x + (w * cue->tracks[i].offset)/tracklen; + xi = x + (w * (long long)cue->tracks[i].offset)/tracklen; draw_veritcal_line_mark(screen, xi, y, h); } } |