mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
[BugFix] Hosted incoming directory component leading slashes #2
Fix the rest.. Change-Id: Ie551772a073cba3eb6de176cd73a59d419057183
This commit is contained in:
parent
d1f14c7b46
commit
b57536db8d
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue