From 1c429e2209508acd954b31b4b3c655cb2cf7bbc2 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Tue, 13 Jan 2026 08:04:47 -0500 Subject: [PATCH] settings: double internal size of "path list" from 80 to 160 bytes * Autoresume path list * Database scan path list Gives us a bit more headroom Change-Id: Icb78d6f46dd39658334ddc3d8dc44863b0e138b4 --- apps/settings.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 */