From f59bfba60527cd0fa4f88eb8012d597533e3f310 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Tue, 15 Feb 2005 20:21:40 +0000 Subject: Comment out calls to sprintf in mad_timer_string() - sprintf doesn't exist in Rockbox and we probably won't use mad_time_string() anyway. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5957 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libmad/timer.c | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'apps') diff --git a/apps/codecs/libmad/timer.c b/apps/codecs/libmad/timer.c index 29df492922..a24595dde3 100644 --- a/apps/codecs/libmad/timer.c +++ b/apps/codecs/libmad/timer.c @@ -354,6 +354,9 @@ void mad_timer_string(mad_timer_t timer, seconds = timer.seconds; frac = sub = 0; + dest[0]=0; + (void)format; + switch (fracunits) { case MAD_UNITS_HOURS: case MAD_UNITS_MINUTES: @@ -423,26 +426,26 @@ void mad_timer_string(mad_timer_t timer, minutes = seconds / 60; hours = minutes / 60; - sprintf(dest, format, - hours, - (unsigned int) (minutes % 60), - (unsigned int) (seconds % 60), - frac, sub); +// sprintf(dest, format, +// hours, +// (unsigned int) (minutes % 60), +// (unsigned int) (seconds % 60), +// frac, sub); break; case MAD_UNITS_MINUTES: minutes = seconds / 60; - sprintf(dest, format, - minutes, - (unsigned int) (seconds % 60), - frac, sub); +// sprintf(dest, format, +// minutes, +// (unsigned int) (seconds % 60), +// frac, sub); break; case MAD_UNITS_SECONDS: - sprintf(dest, format, - seconds, - frac, sub); +// sprintf(dest, format, +// seconds, +// frac, sub); break; case MAD_UNITS_23_976_FPS: @@ -479,7 +482,7 @@ void mad_timer_string(mad_timer_t timer, case MAD_UNITS_50_FPS: case MAD_UNITS_60_FPS: case MAD_UNITS_75_FPS: - sprintf(dest, format, mad_timer_count(timer, units), sub); +// sprintf(dest, format, mad_timer_count(timer, units), sub); break; } } -- cgit v1.2.3