diff options
author | William Wilgus <wilgus.william@gmail.com> | 2024-04-07 16:46:02 -0400 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2024-04-07 16:46:02 -0400 |
commit | b57536db8dd08d7dc17a6aa3042755408a6a5464 (patch) | |
tree | 3ca87047cf4d38faeaf6b83ad1f663d9efcb2ab3 | |
parent | d1f14c7b46ceb550c5cc6e60305ab2b8a50e95bd (diff) | |
download | rockbox-b57536db8dd08d7dc17a6aa3042755408a6a5464.tar.gz rockbox-b57536db8dd08d7dc17a6aa3042755408a6a5464.zip |
[BugFix] Hosted incoming directory component leading slashes #2
Fix the rest..
Change-Id: Ie551772a073cba3eb6de176cd73a59d419057183
-rw-r--r-- | firmware/target/hosted/filesystem-app.c | 2 |
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, | |||
168 | const char *pos = path; | 168 | const char *pos = path; |
169 | /* replace ROCKBOX_DIR in path with $HOME/.config/rockbox.org */ | 169 | /* replace ROCKBOX_DIR in path with $HOME/.config/rockbox.org */ |
170 | pos += ROCKBOX_DIR_LEN; | 170 | pos += ROCKBOX_DIR_LEN; |
171 | if (*pos == '/') pos += 1; | 171 | while (*pos == PATH_SEPCH) pos++; |
172 | 172 | ||
173 | #if (CONFIG_PLATFORM & PLATFORM_ANDROID) | 173 | #if (CONFIG_PLATFORM & PLATFORM_ANDROID) |
174 | if (path_append(buf, "/sdcard/rockbox", pos, bufsize) >= bufsize) | 174 | if (path_append(buf, "/sdcard/rockbox", pos, bufsize) >= bufsize) |