diff options
Diffstat (limited to 'firmware/target/hosted/filesystem-app.c')
-rw-r--r-- | firmware/target/hosted/filesystem-app.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/hosted/filesystem-app.c b/firmware/target/hosted/filesystem-app.c index 09b3365a9e..b36f04a0fe 100644 --- a/firmware/target/hosted/filesystem-app.c +++ b/firmware/target/hosted/filesystem-app.c | |||
@@ -211,7 +211,7 @@ const char * handle_special_dirs(const char *dir, unsigned flags, | |||
211 | { | 211 | { |
212 | const char *p = dir + HOME_DIR_LEN; | 212 | const char *p = dir + HOME_DIR_LEN; |
213 | while (*p == '/') p++; | 213 | while (*p == '/') p++; |
214 | snprintf(buf, bufsize, "%s/%s", rbhome, p); | 214 | path_append(buf, rbhome, p, bufsize); |
215 | dir = buf; | 215 | dir = buf; |
216 | } | 216 | } |
217 | else if (!strncmp(ROCKBOX_DIR, dir, ROCKBOX_DIR_LEN)) | 217 | else if (!strncmp(ROCKBOX_DIR, dir, ROCKBOX_DIR_LEN)) |
@@ -232,7 +232,7 @@ const char * handle_special_dirs(const char *dir, unsigned flags, | |||
232 | #endif | 232 | #endif |
233 | ) | 233 | ) |
234 | { | 234 | { |
235 | snprintf(buf, bufsize, "%s/%s", PIVOT_ROOT, dir); | 235 | path_append(buf, PIVOT_ROOT, dir, bufsize); |
236 | dir = buf; | 236 | dir = buf; |
237 | } | 237 | } |
238 | #endif | 238 | #endif |