From 9d5c526e264e2fe13f8b579528da21b54c65ab9e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 Nov 2022 17:54:31 -0500 Subject: Use zix_path_lexically_relative() --- src/state.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/state.c') diff --git a/src/state.c b/src/state.c index 571a591..d98b80b 100644 --- a/src/state.c +++ b/src/state.c @@ -284,10 +284,10 @@ abstract_path(LV2_State_Map_Path_Handle handle, const char* abs_path) if (lilv_path_is_child(real_path, state->dir)) { // File in state directory (loaded, or created by plugin during save) - path = lilv_path_relative_to(real_path, state->dir); + path = zix_path_lexically_relative(NULL, real_path, state->dir); } else if (lilv_path_is_child(real_path, state->scratch_dir)) { // File created by plugin earlier - path = lilv_path_relative_to(real_path, state->scratch_dir); + path = zix_path_lexically_relative(NULL, real_path, state->scratch_dir); if (state->copy_dir) { ZixStatus st = zix_create_directories(NULL, state->copy_dir); if (st) { @@ -1220,7 +1220,7 @@ lilv_state_make_links(const LilvState* state, const char* dir) } // Make a link in the save directory to the external link - char* target = lilv_path_relative_to(lpath, dir); + char* target = zix_path_lexically_relative(NULL, lpath, dir); maybe_symlink(lpath, path); free(target); free(lpath); -- cgit v1.2.1