Treewide: replace ssnprintf with snprintf
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 2 Jul 2017 19:17:30 +0000 (21:17 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 2 Jul 2017 19:17:30 +0000 (21:17 +0200)
commitbe126043c2be20399d7670fe194645292018bde0
treeffdf71b882b148207b77b936f98eeed8d5d80a38
parent867ad628dc6fcd05bd584b605d7093cfc00c3d07
Treewide: replace ssnprintf with snprintf

ssnprintf supposedly was a safer version of snprintf, but they both
always NUL-terminate the buffer.

After this change GCC >= 7 will start warning when snprintf silenty
truncates, which is good since I want to see when that happens.
113 files changed:
src/aggregation.c
src/amqp.c
src/apache.c
src/ascent.c
src/battery.c
src/bind.c
src/cgroups.c
src/cpu.c
src/cpufreq.c
src/csv.c
src/curl.c
src/curl_json.c
src/curl_xml.c
src/daemon/common.c
src/daemon/common.h
src/daemon/common_test.c
src/daemon/configfile.c
src/daemon/filter_chain.c
src/daemon/meta_data.c
src/daemon/plugin.c
src/daemon/utils_time.c
src/dbi.c
src/disk.c
src/dpdkevents.c
src/dpdkstat.c
src/drbd.c
src/exec.c
src/filecount.c
src/gmond.c
src/hddtemp.c
src/hugepages.c
src/intel_rdt.c
src/interface.c
src/ipmi.c
src/iptables.c
src/ipvs.c
src/logfile.c
src/lpar.c
src/lua.c
src/lvm.c
src/madwifi.c
src/match_regex.c
src/mcelog.c
src/md.c
src/memcached.c
src/mic.c
src/modbus.c
src/mqtt.c
src/mysql.c
src/netapp.c
src/netlink.c
src/nfs.c
src/nginx.c
src/notify_desktop.c
src/notify_email.c
src/notify_nagios.c
src/ntpd.c
src/numa.c
src/olsrd.c
src/onewire.c
src/openldap.c
src/oracle.c
src/ovs_events.c
src/perl.c
src/postgresql.c
src/processes.c
src/protocols.c
src/redis.c
src/routeros.c
src/rrdcached.c
src/rrdtool.c
src/sensors.c
src/sigrok.c
src/smart.c
src/snmp.c
src/snmp_agent.c
src/statsd.c
src/syslog.c
src/tail.c
src/tail_csv.c
src/target_notification.c
src/target_scale.c
src/target_set.c
src/target_v5upgrade.c
src/tcpconns.c
src/teamspeak2.c
src/thermal.c
src/threshold.c
src/turbostat.c
src/utils_cmd_putval.c
src/utils_dns.c
src/utils_dpdk.c
src/utils_format_graphite.c
src/utils_format_json.c
src/utils_format_kairosdb.c
src/utils_mount.c
src/utils_ovs.c
src/utils_rrdcreate.c
src/utils_tail_match.c
src/varnish.c
src/virt.c
src/vserver.c
src/write_graphite.c
src/write_http.c
src/write_kafka.c
src/write_mongodb.c
src/write_prometheus.c
src/write_redis.c
src/write_riemann.c
src/write_sensu.c
src/write_tsdb.c
src/xencpu.c
src/zfs_arc.c