diff options
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -145,7 +145,8 @@ file_get_basename(const struct file * f) } size_t -file_get_data_path(const struct file * f, char *data_path, size_t data_path_len) +file_get_data_path(const struct file * f, char *data_path, size_t data_path_len, + char *append) { char *data_dir; size_t path_len; @@ -155,7 +156,8 @@ file_get_data_path(const struct file * f, char *data_path, size_t data_path_len) return 0; /* check if it is a directory */ - path_len = url_build(data_path, data_path_len, data_dir, f->path, NULL); + path_len = url_build(data_path, data_path_len, data_dir, f->path, + append, NULL); if (path_len == 0 || path_len >= PATH_MAX) return 0; |