path_utils.c: fix mismatched printf specifier

This commit is contained in:
2024-12-27 00:39:59 +00:00
parent 1f737a42fb
commit 242be02050

View File

@@ -84,7 +84,7 @@ char* get_dir_path(const char* path) {
ret = g_strdup_printf("%s%.*s%s",
ftpfs.host,
lastdir - path,
(int)(lastdir - path),
path,
lastdir - path ? "/" : "");