summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2008-08-14 07:04:24 +0000
committerJens Arnold <amiconn@rockbox.org>2008-08-14 07:04:24 +0000
commit4ad26dbfccd0c1ff56d1e511ec9a8cebfc0b6f51 (patch)
treed4404a402d64a27874581b14d24fba8517756c32 /apps
parent553469d8e25df2d5b6721fe10aa388325ef4b1c9 (diff)
downloadrockbox-4ad26dbfccd0c1ff56d1e511ec9a8cebfc0b6f51.tar.gz
rockbox-4ad26dbfccd0c1ff56d1e511ec9a8cebfc0b6f51.tar.bz2
rockbox-4ad26dbfccd0c1ff56d1e511ec9a8cebfc0b6f51.zip
Fix one printf format string warning by applying a simplification.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18276 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/codecs.c b/apps/codecs.c
index 24490dd04b..9df8ac58b7 100644
--- a/apps/codecs.c
+++ b/apps/codecs.c
@@ -239,7 +239,6 @@ int codec_load_buf(unsigned int hid, struct codec_api *api) {
int codec_load_file(const char *plugin, struct codec_api *api)
{
- char msgbuf[80];
char path[MAX_PATH];
int fd;
int rc;
@@ -248,9 +247,8 @@ int codec_load_file(const char *plugin, struct codec_api *api)
fd = open(path, O_RDONLY);
if (fd < 0) {
- snprintf(msgbuf, sizeof(msgbuf)-1, "Couldn't load codec: %s", path);
logf("Codec load error:%d", fd);
- gui_syncsplash(HZ*2, msgbuf);
+ gui_syncsplash(HZ*2, "Couldn't load codec: %s", path);
return fd;
}