From d4c22667a933612a83b78fa821a26ef02ae5be4c Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 6 Sep 2017 16:44:42 +0100 Subject: [PATCH] format commit 9d6e8bfe26c24df8272d6af782ebbde9ef62acb0 Author: Samuel Thibault Date: Wed Sep 6 17:35:56 2017 +0200 Avoid letting snprintf interpret process name as format Gbp-Pq: Name format --- utils/lstopo/lstopo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/lstopo/lstopo.c b/utils/lstopo/lstopo.c index a239800..e9d600d 100644 --- a/utils/lstopo/lstopo.c +++ b/utils/lstopo/lstopo.c @@ -229,7 +229,7 @@ static void add_process_objects(hwloc_topology_t topology) if (!parenl) { snprintf(comm, sizeof(comm), "(unknown)"); } else { - snprintf(comm, sizeof(comm), parenl+1); + snprintf(comm, sizeof(comm), "%s", parenl+1); } } -- 2.30.2