From 7aee79162b8e77b5a1eb14460528df47b1a4f0a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Tue, 22 Jun 2010 10:43:45 +0000 Subject: test_codec: remove 2 static string buffers and put them on the stack git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27049 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/test_codec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/plugins') diff --git a/apps/plugins/test_codec.c b/apps/plugins/test_codec.c index 0e02ab5..9a43076 100644 --- a/apps/plugins/test_codec.c +++ b/apps/plugins/test_codec.c @@ -44,7 +44,6 @@ PLUGIN_HEADER static int line = 0; static int max_line = 0; static int log_fd = -1; -static char logfilename[MAX_PATH]; static void log_close(void) { @@ -55,6 +54,7 @@ static void log_close(void) static bool log_init(bool use_logfile) { int h; + char logfilename[MAX_PATH]; rb->lcd_getstringsize("A", NULL, &h); max_line = LCD_HEIGHT / h; @@ -99,7 +99,6 @@ struct wavinfo_t static void* audiobuf; static void* codec_mallocbuf; static size_t audiosize; -static char str[MAX_PATH]; /* Our local implementation of the codec API */ static struct codec_api ci; @@ -591,6 +590,7 @@ static enum plugin_status test_track(const char* filename) unsigned long speed; unsigned long duration; const char* ch; + char str[MAX_PATH]; /* Display filename (excluding any path)*/ ch = rb->strrchr(filename, '/'); -- cgit v1.1