diff options
author | Damjan Marion <damarion@cisco.com> | 2022-03-23 13:13:41 +0100 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2022-03-23 17:21:23 +0000 |
commit | 8296a1d043ce6584561dabbc671087e040a3ae13 (patch) | |
tree | 55c7d7da9218fa5fb657413c11bd8711ab505474 /src/plugins | |
parent | fa7f21bb6b4222e5467c7cda118cb82028a71411 (diff) |
perfmon: null-terminate string
Type: fix
Change-Id: I43ebb2c2922f3b8b8eddf26ccdf044f31d7b7a10
Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/perfmon/intel/uncore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/perfmon/intel/uncore.c b/src/plugins/perfmon/intel/uncore.c index 8246bb13c61..4ed001d4deb 100644 --- a/src/plugins/perfmon/intel/uncore.c +++ b/src/plugins/perfmon/intel/uncore.c @@ -78,7 +78,7 @@ format_instance_name (intel_uncore_unit_type_t u, char *unit_fmt, u8 socket_id, { u8 *fmt = 0; - fmt = format (0, "%s (%s)", unit_fmt, (n->unit_names[ubox])); + fmt = format (0, "%s (%s)%c", unit_fmt, (n->unit_names[ubox]), 0); s = format (0, (char *) fmt, socket_id, ubox); vec_free (fmt); |