diff options
author | Colin Walters <walters@verbum.org> | 2020-11-22 22:59:45 +0000 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2020-11-22 23:03:04 +0000 |
commit | a8b4418954bf200746dc5c5cc450649cc345cbd2 (patch) | |
tree | f3591b57e8ea72a8de551e9c5229850ec29b1357 | |
parent | efcacc4c5fc8a94d3a202c6c6549c155a14600e4 (diff) | |
download | libglnx-a8b4418954bf200746dc5c5cc450649cc345cbd2.tar.gz |
glnx_strjoina: Cast to result for C++ compatibility
Prep for using C++ in rpm-ostree (temporarily).
-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 700fc75..7b3afd4 100644 --- a/glnx-macros.h +++ b/glnx-macros.h @@ -52,7 +52,7 @@ G_BEGIN_DECLS unsigned _i_; \ for (_i_ = 0; _i_ < G_N_ELEMENTS(_appendees_) && _appendees_[_i_]; _i_++) \ _len_ += strlen(_appendees_[_i_]); \ - _p_ = _d_ = alloca(_len_ + 1); \ + _p_ = _d_ = (char*) alloca(_len_ + 1); \ for (_i_ = 0; _i_ < G_N_ELEMENTS(_appendees_) && _appendees_[_i_]; _i_++) \ _p_ = stpcpy(_p_, _appendees_[_i_]); \ *_p_ = 0; \ |