diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2024-04-19 21:15:49 +0200 |
---|---|---|
committer | Christian Soffke <christian.soffke@gmail.com> | 2024-04-20 15:41:21 +0200 |
commit | e5c65a00392f801e39d7e3287c62bd8e4ec17cda (patch) | |
tree | de030a8a0565aeca3dc0c1500bdf9bcf151d59c8 | |
parent | 123858287b01cd63b3466da3d655e44bf7667330 (diff) | |
download | rockbox-e5c65a0039.tar.gz rockbox-e5c65a0039.zip |
ft_assemble_path: fix prematurely cut-off path
bug report at https://forums.rockbox.org/index.php/topic,54842.msg
Change-Id: I423c28e277084502b7aaff7c3a8e3b6ba37f54e8
-rw-r--r-- | apps/filetree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/filetree.c b/apps/filetree.c index 11d562f586..dff8f49be9 100644 --- a/apps/filetree.c +++ b/apps/filetree.c @@ -488,7 +488,7 @@ int ft_assemble_path(char *buf, size_t bufsz, const char* currdir, const char* f { len = path_append(buf, root_realpath(), currdir, bufsz); if (len < bufsz) - len = path_append(buf, buf + len, filename, bufsz - len); + len = path_append(buf + len, PA_SEP_HARD, filename, bufsz - len); } len = path_append(buf, currdir, filename, bufsz); } @@ -506,7 +506,7 @@ int ft_assemble_path(char *buf, size_t bufsz, const char* currdir, const char* f { len = path_append(buf, root_realpath(), currdir, bufsz); if(len < bufsz) - len = path_append(buf, buf + len, filename, bufsz - len); + len = path_append(buf + len, PA_SEP_HARD, filename, bufsz - len); } else /* In / */ { |