diff options
author | Jonathan Lebon <jlebon@redhat.com> | 2017-09-25 15:38:25 +0000 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2017-09-25 11:55:43 -0400 |
commit | 292cfc807e1662d5f6fe16f4d372e97973956955 (patch) | |
tree | edfa654e2148c8ee7f37de44c80e5417f6ea6de9 | |
parent | 5ee2f1be7a10a3644168d7f9e6281d4c5bcabe87 (diff) | |
download | libglnx-292cfc807e1662d5f6fe16f4d372e97973956955.tar.gz |
macros: use size_t for glnx_strjoina len
This was in my workspace for a while.
`strlen` returns a `size_t` and `alloca` expects a `size_t`.
-rw-r--r-- | glnx-macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glnx-macros.h b/glnx-macros.h index 1d4e175..6d8aca9 100644 --- a/glnx-macros.h +++ b/glnx-macros.h @@ -38,7 +38,7 @@ G_BEGIN_DECLS ({ \ const char *_appendees_[] = { a, __VA_ARGS__ }; \ char *_d_, *_p_; \ - int _len_ = 0; \ + size_t _len_ = 0; \ unsigned _i_; \ for (_i_ = 0; _i_ < G_N_ELEMENTS(_appendees_) && _appendees_[_i_]; _i_++) \ _len_ += strlen(_appendees_[_i_]); \ |