summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2024-04-07 16:46:02 -0400
committerWilliam Wilgus <wilgus.william@gmail.com>2024-04-07 16:46:02 -0400
commitb57536db8dd08d7dc17a6aa3042755408a6a5464 (patch)
tree3ca87047cf4d38faeaf6b83ad1f663d9efcb2ab3
parentd1f14c7b46ceb550c5cc6e60305ab2b8a50e95bd (diff)
downloadrockbox-b57536db8d.tar.gz
rockbox-b57536db8d.zip
[BugFix] Hosted incoming directory component leading slashes #2
Fix the rest.. Change-Id: Ie551772a073cba3eb6de176cd73a59d419057183
-rw-r--r--firmware/target/hosted/filesystem-app.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/hosted/filesystem-app.c b/firmware/target/hosted/filesystem-app.c
index 5b291154fa..7d59a174dc 100644
--- a/firmware/target/hosted/filesystem-app.c
+++ b/firmware/target/hosted/filesystem-app.c
@@ -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)