diff --git a/path_utils.c b/path_utils.c index db3d7e4..4434f2f 100644 --- a/path_utils.c +++ b/path_utils.c @@ -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 ? "/" : "");