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