[BugFix] Hosted incoming directory component leading slashes #2

Fix the rest..

Change-Id: Ie551772a073cba3eb6de176cd73a59d419057183
This commit is contained in:
William Wilgus 2024-04-07 16:46:02 -04:00
parent d1f14c7b46
commit b57536db8d

View file

@ -168,7 +168,7 @@ static const char* _get_user_file_path(const char *path,
const char *pos = path;
/* replace ROCKBOX_DIR in path with $HOME/.config/rockbox.org */
pos += ROCKBOX_DIR_LEN;
if (*pos == '/') pos += 1;
while (*pos == PATH_SEPCH) pos++;
#if (CONFIG_PLATFORM & PLATFORM_ANDROID)
if (path_append(buf, "/sdcard/rockbox", pos, bufsize) >= bufsize)