diff --git a/apps/settings.h b/apps/settings.h index 85b5cd102d..a4b5a5832c 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -41,6 +41,7 @@ struct opt_items { /** Setting values defines **/ #define MAX_FILENAME 32 #define MAX_PATHNAME 80 +#define MAX_PATHLIST (MAX_PATHNAME*2) /* The values are assigned to the enums so that they correspond to */ /* setting values in settings_list.c */ @@ -627,9 +628,9 @@ struct user_settings bool autoresume_enable; /* enable auto-resume feature? */ int autoresume_automatic; /* resume next track? 0=never, 1=always, 2=custom */ - unsigned char autoresume_paths[MAX_PATHNAME+1]; /* colon-separated list */ + unsigned char autoresume_paths[MAX_PATHLIST+1]; /* colon-separated list */ bool runtimedb; /* runtime database active? */ - unsigned char tagcache_scan_paths[MAX_PATHNAME+1]; + unsigned char tagcache_scan_paths[MAX_PATHLIST+1]; unsigned char tagcache_db_path[MAX_PATHNAME+1]; #endif /* HAVE_TAGCACHE */