summaryrefslogtreecommitdiff
path: root/src/shared/path-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/path-util.c')
-rw-r--r--src/shared/path-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/path-util.c b/src/shared/path-util.c
index 8e108db531..45099eeda8 100644
--- a/src/shared/path-util.c
+++ b/src/shared/path-util.c
@@ -456,7 +456,7 @@ int find_binary(const char *name, char **filename) {
FOREACH_WORD_SEPARATOR(w, l, path, ":", state) {
char *p;
- if (asprintf(&p, "%.*s/%s", l, w, name) < 0)
+ if (asprintf(&p, "%.*s/%s", (int) l, w, name) < 0)
return -ENOMEM;
if (access(p, X_OK) < 0) {