summaryrefslogtreecommitdiffstats
path: root/apps/onplay.c
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-11-15 12:33:47 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-11-15 12:33:47 +0000
commit2142628a2dba84c5dd79cc54b48ab1ee5f8b70f8 (patch)
treec60fd5f4dc8245d889142cba1b775dca9552e1ab /apps/onplay.c
parent7ee3b110221b31acaac4d5d24cf36089c341bcaa (diff)
downloadrockbox-2142628a2dba84c5dd79cc54b48ab1ee5f8b70f8.tar.gz
rockbox-2142628a2dba84c5dd79cc54b48ab1ee5f8b70f8.tar.bz2
rockbox-2142628a2dba84c5dd79cc54b48ab1ee5f8b70f8.zip
FS#11751: increase buffer size of settings to store path.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28603 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index 1d59b34aa4..eb0c168f0a 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -1038,7 +1038,8 @@ MENUITEM_FUNCTION(set_backdrop_item, 0, ID2P(LANG_SET_AS_BACKDROP),
#ifdef HAVE_RECORDING
static bool set_recdir(void)
{
- strlcpy(global_settings.rec_directory, selected_file, MAX_FILENAME+1);
+ strlcpy(global_settings.rec_directory, selected_file,
+ sizeof(global_settings.rec_directory));
settings_save();
return false;
}