diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-11-28 19:33:07 +0100 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2020-11-28 19:33:07 +0100 |
commit | ea4f33409a978140493a43567fa3a3454ab03479 (patch) | |
tree | 80ed4da77c2c5a69410a32a96f78fea643c61e7d /AffinityPanel.c | |
parent | 7899ae2eb1ec23f5315aee4a2601cbb95bdbf4c2 (diff) |
Update even more snprintfs
Use size of actual buffers instead of magic numbers
Diffstat (limited to 'AffinityPanel.c')
-rw-r--r-- | AffinityPanel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/AffinityPanel.c b/AffinityPanel.c index 9c2a6e7c..e491b524 100644 --- a/AffinityPanel.c +++ b/AffinityPanel.c @@ -294,7 +294,7 @@ static MaskItem* AffinityPanel_addObject(AffinityPanel* this, hwloc_obj_t obj, u //left -= len; } - xSnprintf(buf, 64, "%s %s%u", type_name, index_prefix, index); + xSnprintf(buf, sizeof(buf), "%s %s%u", type_name, index_prefix, index); MaskItem* item = MaskItem_newMask(buf, indent_buf, obj->complete_cpuset, false); if (parent) |