chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
STRV_FOREACH_BACWARDS: start at the tail of the list
[elogind.git]
/
src
/
shared
/
path-util.c
diff --git
a/src/shared/path-util.c
b/src/shared/path-util.c
index 8e108db53173f1c39ef1ae2965c7081031ee6fce..45099eeda8d6dc3898467bd31a5b8a087bcdb901 100644
(file)
--- 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) {