From 89c093596906dd787a8af56acf6d054de92cc383 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Wed, 11 Jun 2008 14:30:02 +0200 Subject: [PATCH] libvirt plugin: Replace `strcat' with `strncat'. --- src/libvirt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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--; } -- 2.30.2