chiark / gitweb /
fix compile warnings/errors
[innduct.git] / duct.c
diff --git a/duct.c b/duct.c
index 8f7af2cc5e5f7248754c610e20c8702ebf09dbc7..29b8ea64ff0cf6d7607f2430483e237894e375c1 100644 (file)
--- a/duct.c
+++ b/duct.c
@@ -500,7 +500,7 @@ int main(int argc, char **argv) {
   } else if (!path_cli[0] || !strcmp(path_cli,"none")) {
     path_cli= 0; /* ok, don't then */
   } else if (path_ends_slash(path_cli)) {
-    path_cli_dir= masprintf("%.*s", strlen(path_cli)-1, path_cli);
+    path_cli_dir= masprintf("%.*s", (int)(strlen(path_cli)-1), path_cli);
   }
   if (path_cli_dir)
     path_cli= masprintf("%s/%s", path_cli_dir, sitename);