From 804c2005e13f2edaf55e67e16e63000996ad0ef1 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 25 Oct 2004 13:14:26 +0000 Subject: [PATCH] WPS subline times >25.5s caused overflow, since time_mult[] was only 8 bits git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5344 a1c6a512-1295-4272-9138-f99709370657 --- apps/wps-display.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/wps-display.c b/apps/wps-display.c index 339857710c..5ad8b188e2 100644 --- a/apps/wps-display.c +++ b/apps/wps-display.c @@ -79,7 +79,7 @@ static char map_fullbar_char(char ascii_val); static char format_buffer[FORMAT_BUFFER_SIZE]; static char* format_lines[MAX_LINES][MAX_SUBLINES]; static unsigned char line_type[MAX_LINES][MAX_SUBLINES]; -static unsigned char time_mult[MAX_LINES][MAX_SUBLINES]; +static unsigned short time_mult[MAX_LINES][MAX_SUBLINES]; static long subline_expire_time[MAX_LINES]; static int curr_subline[MAX_LINES]; @@ -310,7 +310,7 @@ static char* get_tag(struct mp3entry* cid3, char* buf, int buf_size, unsigned char* tag_len, - unsigned char* subline_time_mult, + unsigned short* subline_time_mult, unsigned char* flags) { struct mp3entry *id3 = cid3; /* default to current song */ @@ -694,7 +694,7 @@ static void format_display(char* buf, struct mp3entry* id3, struct mp3entry* nid3, /* next song's id3 */ const char* fmt, - unsigned char* subline_time_mult, + unsigned short* subline_time_mult, unsigned char* flags) { char temp_buf[128];