From: Florian Forster Date: Wed, 11 Jun 2008 12:30:02 +0000 (+0200) Subject: libvirt plugin: Replace `strcat' with `strncat'. X-Git-Tag: collectd-4.4.2~10^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=89c093596906dd787a8af56acf6d054de92cc383;p=collectd.git libvirt plugin: Replace `strcat' with `strncat'. --- diff --git a/src/libvirt.c b/src/libvirt.c index 327536a1..81d7f1cd 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -667,7 +667,7 @@ init_value_list (value_list_t *vl, time_t t, virDomainPtr dom) n = DATA_MAX_NAME_LEN - strlen (vl->host) - 2; if (i > 0 && n >= 1) { - strcat (vl->host, ":"); + strncat (vl->host, ":", 1); n--; }