settings: double internal size of "path list" from 80 to 160 bytes

rockbox-gerrit-noreply--- via rockbox-cvs <[email protected]>
Newsgroups gmane.comp.systems.archos.rockbox.cvs
Message-ID <[email protected]>
commit 1c429e2209508acd954b31b4b3c655cb2cf7bbc2
Author: Solomon Peachy <[email protected]>
Date:   Tue Jan 13 08:04:47 2026 -0500

    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

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 */
 
-- 
rockbox-cvs mailing list
[email protected]
https://lists.haxx.se/mailman/listinfo/rockbox-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.