[collectd-changes] collectd, the system statistics collection daemon: Changes to 'master'

Florian Forster octo at verplant.org
Thu Sep 15 10:11:56 CEST 2016


 src/daemon/common.c      |   80 ++++++++++++++++++++++++-------------------
 src/daemon/common.h      |   13 ++++---
 src/daemon/common_test.c |   84 +++++++++++++++++++++++++---------------------
 3 files changed, 99 insertions(+), 78 deletions(-)

New commits:
commit 10139cda6f68ae1f921d79c930dd85944afb74a3
Merge: edc55eb afb38f3
Author: Florian Forster <octo at collectd.org>
Date:   Thu Sep 15 10:10:30 2016 +0200

    Merge branch 'pr/1792'

commit afb38f31abd27d5b4ce08023f8bbbaeeb353c55f
Author: Florian Forster <octo at collectd.org>
Date:   Thu Sep 15 08:59:16 2016 +0200

    src/daemon/common.[ch]: Reimplement strjoin().
    
    This new implementation truncates fields rather than aborting when there
    is more space in the output buffer. Since strjoin() is mostly used to
    fill plugin and type instances, which are otherwise usually filled with
    sstrncpy(), i.e. also truncate the string rather than erroring out.
    
    The unit test has also been rewritten to test the new functionality.
    
    The new functions have been formatted with clang-format.
    
    Fixes: #1792

commit f7d1db6cc1bed058ca03747f5c6bdd07ce12be27
Author: John Conroy <john.conroy at interoptechnologies.com>
Date:   Wed Jul 13 17:03:11 2016 -0400

    Truncate strjoin arguments if > DATA_MAX_NAME_LEN
    
    If strjoin() runs out of buffer space when joining strings, use the
    remainder of available space rather than skipping additional strings
    
    Reworked return() to avoid extra strlen() call




More information about the collectd-changes mailing list