Blame SOURCES/0001-Avoid-letting-snprintf-interpret-process-name-as-for.patch
|
|
d5b8de |
From 9d6e8bfe26c24df8272d6af782ebbde9ef62acb0 Mon Sep 17 00:00:00 2001
|
|
|
d5b8de |
From: Samuel Thibault <samuel.thibault@ens-lyon.org>
|
|
|
d5b8de |
Date: Wed, 6 Sep 2017 17:35:56 +0200
|
|
|
d5b8de |
Subject: [PATCH] Avoid letting snprintf interpret process name as format
|
|
|
d5b8de |
|
|
|
d5b8de |
---
|
|
|
d5b8de |
utils/lstopo/lstopo.c | 2 +-
|
|
|
d5b8de |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
d5b8de |
|
|
|
d5b8de |
diff --git a/utils/lstopo/lstopo.c b/utils/lstopo/lstopo.c
|
|
|
d5b8de |
index a23980010d..e9d600d457 100644
|
|
|
d5b8de |
--- a/utils/lstopo/lstopo.c
|
|
|
d5b8de |
+++ b/utils/lstopo/lstopo.c
|
|
|
d5b8de |
@@ -229,7 +229,7 @@ static void add_process_objects(hwloc_topology_t topology)
|
|
|
d5b8de |
if (!parenl) {
|
|
|
d5b8de |
snprintf(comm, sizeof(comm), "(unknown)");
|
|
|
d5b8de |
} else {
|
|
|
d5b8de |
- snprintf(comm, sizeof(comm), parenl+1);
|
|
|
d5b8de |
+ snprintf(comm, sizeof(comm), "%s", parenl+1);
|
|
|
d5b8de |
}
|
|
|
d5b8de |
}
|
|
|
d5b8de |
|
|
|
d5b8de |
--
|
|
|
d5b8de |
2.13.6
|
|
|
d5b8de |
|