(find_parameters): use vfs_path_len().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2022-10-30 09:49:00 +03:00
parent f114af83c8
commit b3dd7cfe60

View File

@ -857,7 +857,7 @@ find_parameters (WPanel * panel, char **start_dir, ssize_t * start_dir_len,
/* relative paths will be used in panelization */
*start_dir =
mc_build_filename (vfs_path_as_str (panel->cwd_vpath), s, (char *) NULL);
*start_dir_len = (ssize_t) strlen (vfs_path_as_str (panel->cwd_vpath));
*start_dir_len = (ssize_t) vfs_path_len (panel->cwd_vpath);
g_free (s);
}