projects
/
hwloc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4066e4
)
format
author
Samuel Thibault
<sthibault@debian.org>
Sun, 17 Sep 2017 01:56:00 +0000
(
02:56
+0100)
committer
Peter Michael Green
<plugwash@raspbian.org>
Sun, 17 Sep 2017 01:56:00 +0000
(
02:56
+0100)
commit
9d6e8bfe26c24df8272d6af782ebbde9ef62acb0
Author: Samuel Thibault <samuel.thibault@ens-lyon.org>
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
patch
|
blob
|
history
diff --git
a/utils/lstopo/lstopo.c
b/utils/lstopo/lstopo.c
index a23980010d4debf2fdd1a407d17df015d7684705..e9d600d4576938b4c24899b0d2a49b9470c36f2e 100644
(file)
--- 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);
}
}