summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-06-22 10:43:45 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-06-22 10:43:45 +0000
commit7aee79162b8e77b5a1eb14460528df47b1a4f0a7 (patch)
tree919e8ec23ef6062e7d5a9d57bbcbd088985398c0 /apps/plugins
parentd5183591519d166486d1500152c5edbce3e72899 (diff)
downloadrockbox-7aee79162b8e77b5a1eb14460528df47b1a4f0a7.zip
rockbox-7aee79162b8e77b5a1eb14460528df47b1a4f0a7.tar.gz
rockbox-7aee79162b8e77b5a1eb14460528df47b1a4f0a7.tar.bz2
rockbox-7aee79162b8e77b5a1eb14460528df47b1a4f0a7.tar.xz
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
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/test_codec.c4
1 files changed, 2 insertions, 2 deletions
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, '/');