D29810: Don't use setenv after fork

Anthony Fieroni noreply at phabricator.kde.org
Sun May 17 20:46:38 BST 2020


anthonyfieroni added inline comments.

INLINE COMMENTS

> kcrash.cpp:825
> +
> +    std::array<const char*, 1024> environ_data; //hope it's big enough
> +    if((unsigned)(environ_end - environ) +2 >= environ_data.size()) {

Just use vector, get the size by `environ_end - environ`

REPOSITORY
  R285 KCrash

REVISION DETAIL
  https://phabricator.kde.org/D29810

To: jpalecek, #frameworks
Cc: anthonyfieroni, kde-frameworks-devel, LeGast00n, cblack, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200517/c3a7ae56/attachment.htm>


More information about the Kde-frameworks-devel mailing list