Use fill_pathname_join_delim

This commit is contained in:
twinaphex 2016-07-23 14:02:23 +02:00
parent 61fe38bf6d
commit 8f720541c9

View File

@ -499,8 +499,10 @@ int generic_action_ok_displaylist_push(const char *path,
break; break;
case ACTION_OK_DL_CORE_CONTENT_DIRS_SUBDIR_LIST: case ACTION_OK_DL_CORE_CONTENT_DIRS_SUBDIR_LIST:
{ {
char new_path[PATH_MAX_LENGTH]; char new_path[PATH_MAX_LENGTH] = {0};
snprintf(new_path, sizeof(new_path), "%s;%s", path, label);
fill_pathname_join_delim(new_path, path, label, ';',
sizeof(new_path));
info.type = type; info.type = type;
info.directory_ptr = idx; info.directory_ptr = idx;
info_path = new_path; info_path = new_path;