summaryrefslogtreecommitdiff
path: root/src/basic/string-util.h
diff options
context:
space:
mode:
authorJonathan Lebon <jlebon@users.noreply.github.com>2017-09-25 15:56:57 -0400
committerSven Eden <yamakuzure@gmx.net>2017-09-25 15:56:57 -0400
commit7c26164bbdba7408a766ed9ac80a0d9d5dca0362 (patch)
tree17a5a620c660fb97b92c5f27ad2cc77f2c443a26 /src/basic/string-util.h
parente967f5af047cdd82b7a3a9bd88359d75791e4189 (diff)
string-util: use size_t for strjoina macro (#6914)
`strlen` returns a `size_t` and `alloca` expects a `size_t`.
Diffstat (limited to 'src/basic/string-util.h')
-rw-r--r--src/basic/string-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/string-util.h b/src/basic/string-util.h
index a28ef9c4f..19c8d8bb3 100644
--- a/src/basic/string-util.h
+++ b/src/basic/string-util.h
@@ -124,7 +124,7 @@ char *strjoin_real(const char *x, ...) _sentinel_;
({ \
const char *_appendees_[] = { a, __VA_ARGS__ }; \
char *_d_, *_p_; \
- int _len_ = 0; \
+ size_t _len_ = 0; \
unsigned _i_; \
for (_i_ = 0; _i_ < ELEMENTSOF(_appendees_) && _appendees_[_i_]; _i_++) \
_len_ += strlen(_appendees_[_i_]); \