summaryrefslogtreecommitdiffstats
path: root/apps/root_menu.c
diff options
context:
space:
mode:
authorNils Wallménius <nils@rockbox.org>2008-09-24 20:03:53 +0000
committerNils Wallménius <nils@rockbox.org>2008-09-24 20:03:53 +0000
commit93a87685c3f39e731f4297b07bd139420b2e5554 (patch)
tree6ef4cd5f3b2b1a770ea1102cc6ce5d12f508e2e2 /apps/root_menu.c
parent7d4cebd7dad4d1e5e97084c28a0f71d4d7142295 (diff)
downloadrockbox-93a87685c3f39e731f4297b07bd139420b2e5554.tar.gz
rockbox-93a87685c3f39e731f4297b07bd139420b2e5554.tar.bz2
rockbox-93a87685c3f39e731f4297b07bd139420b2e5554.zip
Clean up use of snprintf where strncpy if suited, avoid useless copying of constant strings for wps token evaluator, minor const police too.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18625 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/root_menu.c')
-rw-r--r--apps/root_menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/root_menu.c b/apps/root_menu.c
index 7322cbd9f6..4b9be39a8c 100644
--- a/apps/root_menu.c
+++ b/apps/root_menu.c
@@ -198,7 +198,7 @@ static int browser(void* param)
#endif
case GO_TO_BROWSEPLUGINS:
filter = SHOW_PLUGINS;
- snprintf(folder, MAX_PATH, "%s", PLUGIN_DIR);
+ strncpy(folder, PLUGIN_DIR, MAX_PATH);
break;
}
ret_val = rockbox_browse(folder, filter);