forked from len0rd/rockbox
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
This commit is contained in:
parent
7ee3b11022
commit
2142628a2d
3 changed files with 8 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue